Javascript for Episerver 7.5 cms

ContentStatusViewModel (constructor)

Location

epi-cms/widget/viewmodel/ContentStatusViewModel

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

statusIcon

Store content status icon classes

statusMessage

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

Methods

public inherited method _changeAttrValue ( name , value )

Internal helper for directly changing an attribute value.

Parameters

public method _contentLinkSetter ( contentLink )

Content Link setter

Parameters

public method _contentSetter ( content )

Parameters

public method _contentStatusSetter ( status )

Parameters

public inherited method _contextChanged ( _11 , _12 )

Parameters

public inherited method _get ( name , names )

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

Parameters

public method _getStatusMessage ( )

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


public inherited method _initialContextChanged ( _13 , _14 )

Parameters

public method _isDeletedGetter ( )


public method _isTranslationNeededGetter ( )


public method _isVisibleOnSiteGetter ( )

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


public method _missingLanguageBranchGetter ( )


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 get ( name )

Get a property on a Stateful instance.

Parameters

public inherited method getCurrentContext ( )


public method loadStatus ( )

Loads the status for the current contentLink


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 postscript ( )


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