Javascript for Episerver 7.5 cms

ContentBlockViewModel (constructor)

Location

epi-cms/contentediting/viewmodel/ContentBlockViewModel

Extends

Properties

_attrPairNames

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

_contentStructureStore

_currentContext

_waitingForContext

autoLoadStatus

Set it to true of the status information should be automatically loaded when the contentLink is set

hasSiblings

Is true if the block has any siblings

isVisible

If the block could be seen it is true

label

The label used when displaying the block

roles

Localized string of the role identities

settings

Settings object for the model

statusIcon

Store content status icon classes

statusMessage

Store content status message. Can be [String] or [Array] data type.

store

The Visitor Groups store

Methods

public inherited method _changeAttrValue ( name , value )

Internal helper for directly changing an attribute value.

Parameters

public method _contentGroupSetter ( contentGroup )

Parameters

public inherited method _contentLinkSetter ( contentLink )

Content Link setter

Parameters

public inherited method _contentSetter ( content )

Parameters

public inherited method _contentStatusSetter ( status )

Parameters

public inherited method _contextChanged ( _11 , _12 )

Parameters

public method _displayOptionGetter ( )

Gets the display options attribute from the attribute list


public method _displayOptionSetter ( option )

Sets the display options attribute on the attribute list

Parameters

public inherited method _get ( name , names )

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

Parameters

public inherited method _getStatusMessage ( )

Get content version status message. Override this function to customize content status message.


public method _hasSiblingsSetter ( hasSiblings )

Parameters

public inherited method _initialContextChanged ( _13 , _14 )

Parameters

public inherited method _isDeletedGetter ( )


public inherited method _isTranslationNeededGetter ( )


public inherited method _isVisibleOnSiteGetter ( )

Allow create additional information area or not. Based on content version status.


public inherited method _missingLanguageBranchGetter ( )


public method _parentSetter ( parent )

Parameters

public method _reloadRoles ( )


public method _roleIdentitiesSetter ( roleIdentities )

Parameters

public method _rolesSetter ( roles )

Parameters

public method _selectedSetter ( selected )

Parameters

public method _updateRolesString ( )


public method constructor ( )


public inherited method contextChanged ( _c , _d )

Parameters

public inherited method contextChangeFailed ( ctx , _10 )

Parameters

public inherited method contextUpdated ( _e , _f )

Parameters

public inherited method destroy ( preserveDom )

Destroy this class, releasing any resources registered via own().

Parameters

public inherited method emit ( type , event )

Parameters

public method equals ( item )

Returns true if this content block is the same as the given item at a property level.

Parameters

public inherited method get ( name )

Get a property on a Stateful instance.

Parameters

public inherited method getCurrentContext ( )


public method hasAnyRoles ( )

Returns true if there are any selected roles


public method isRoleSelected ( roleId )

Returns true if the roles is selected

Parameters

public inherited method loadStatus ( )

Loads the status for the current contentLink


public inherited method modify ( callback , scope , emitChanged )

Method used to wrap several changes in one "operation" When the callback has been executed the "changed" event will be emitted

Parameters

public method moveNext ( )

Move this instance to the next index in the parents child list


public method moveOutsideGroup ( )

If the block is inside a gruop move it outside


public method movePrevious ( )

Move this instance to the previous index in the parents child list


public inherited method on ( type , listener )

Parameters

public inherited method own ( )

Track specified handles and remove/destroy them when this instance is destroyed, unless they were already removed/destroyed manually.


public method personalize ( )

Personalizes the block


public method postscript ( )


public method remove ( )

Removes the block from the parent


public method resetRoleIdentities ( )

Resets the role identities for the block


public method selectRole ( roleId , select )

Selects or unselects the role depending on the select param roleId: Guid The role id to select/unselect select: Boolean True of false depending on if the role should be selected or unselected

Parameters

public method serialize ( )


public inherited method set ( name , value )

Set a property on a Stateful instance

Parameters

public inherited method watch ( name , callback )

Watches a property for changes

Parameters