Javascript for Episerver 7.5 cms

CreateLanguageBranchViewModel (constructor)

Location

epi-cms/contentediting/viewmodel/CreateLanguageBranchViewModel

Extends

Properties

_attrPairNames

Used across all instances a hash to cache attribute names and their getter and setter names.

_groupContainerType

The default group container type used in properties form.

_topLevelContainerType

The default top level container type used in properties form.

actualParentLink

Link of the parent beneath which the content is created. It could be the given parent or the given parent's local asset folder.

addToDestination

A delagate object which contains a save method. The method will be executed after the content is successfully created.

canChangeLocalAssetName

Indicates that the content is created as local asset from a pseudo contextual folder can change its default name or not.

contentDataStore

The content data store instance.

contentName

Name of the content being created. This is initialized from the resource bundle and bound to the name text box in the widget.

contentTypeId

The content type id of which the new content is created.

createAsLocalAsset

Indicates that the content is created as local asset which means it will be attached to the parent content's asset folder.

createAsLocalAssetHelpText

Helper text that displayed in the sub header

headingPanelIsVisible

Indicates that the heading panel is visible. Similar to the name panel, heading panel is not visible when the content is created as local asset. In that case, a more detail heading is displayed inside the content type selection list or properties form.

headingText

Heading text which is displayed on the top of the toolbar. This is set according to the current request type.

ignoreDefaultNameWarning

Indicates that name checking should be ignored.

languageBranch

Language branch on which the new content is created.

masterLanguageVersionId

Content link of the master language version.

metadata

The metadata object of the content being created.

metadataManager

The metadata manager instance.

namePanelIsVisible

Indicate that the name panel is visible. If the content is created as local asset, name panel should not be visible

parent

The parent content on which the new content is created.

properties

The properties collection used to create new content.

requestedType

The type indentifier of created content. This is used for filtering available content types.

saveButtonDisabled

Indicate that the save button should be disabled, when saving is on going.

saveButtonIsVisible

Indicate that the save button should be visible, normally in the last step.

seamlessTopPanel

Indicates that the top panel should show seamlessly.

showAllProperties

Indicates that it should show all properties for user to enter initial value, normally when content is created as local asset.

showCurrentNodeOnBreadcrumb

Indicates that the breadcrumb should show current content node.

startWizardStep

Which step to start with

typeIdentifierManager

The type identifier manager instance.

validator

The content editing validator instance.

wizardStep

Keeps track the current step of the creation wizard. 0 means selecting content type while 1 means collecting properties value.

Methods

public inherited method _changeAttrValue ( name , value )

Internal helper for directly changing an attribute value.

Parameters

public inherited method _emitSaveEvent ( eventName , params )

Parameters

public inherited method _get ( name , names )

Private function that does a get based off a hash of names

Parameters

public method _isRequired ( property )

Checks if the given property is required.

Parameters

public inherited method _parentSetter ( parent )

Parameters

public inherited method addInvalidProperty ( propertyName , errorMessage )

State that a property has become invalid after client validation.

Parameters

public method buildContentObject ( )

Build up the content object to create from model properties.


public inherited method cancel ( )

Cancel operation and finish the wizard


public inherited method emit ( type , event )

Parameters

public inherited method get ( name )

Get a property on a Stateful instance.

Parameters

public inherited method on ( type , listener )

Parameters

public method postscript ( )


public inherited method removeInvalidProperty ( propertyName )

State that a property is no more invalid after client validation.

Parameters

public inherited method save ( )

Save the content and finish the wizard.


public inherited method set ( name , value )

Set a property on a Stateful instance

Parameters

public method update ( settings )

Update the component with new settings.

Parameters

public inherited method watch ( name , callback )

Watches a property for changes

Parameters