Javascript for Episerver 7.5 cms

ItemEdit (constructor)

Location

epi-cms/contentediting/command/ItemEdit

Extends

Properties

_attrPairNames

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

_dialog

_modelChangeWatcher

cancelActionText

Label to be displayed for the cancel (negative) action.

canExecute

category

A category which hints that this item should be displayed with a separator.

confirmActionText

Label to be displayed for the confirm (positive) action.

defaultActionsVisible

.Flag which indicates whether the default confirm and cancel actions should be visible. This can only be set in the constructor.

destroyOnHide

Destroy dialog on hide or not.

dialogClass

The css class for dialog. Default value is "epi-dialog-portrait".

dialogContent

The instance of dialogContentClass will be stored by this prop.

dialogContentParams

The parameters for create new instance of dialogContentClass.

dialogParams

The parameters for create new instance of dialog.

iconClass

The icon class of the command to be used in visual elements.

isAvailable

label

model

module

"epi-cms/contentediting/command/_CommandWithDialogMixin"

name

order

res

Json language resouce object used to get default title when insert/edit item.

title

The dialog's title.

tooltip

value

The value of item that being edited.

Methods

public inherited method _changeAttrValue ( name , value )

Internal helper for directly changing an attribute value.

Parameters

protected method _execute ( )

Overwrite base clase, change the context to edit the block.


public inherited method _get ( name , names )

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

Parameters

protected method _getContainer ( )

Get the selected content parent model


protected method _getItem ( )

Get the selected content model, based on its group


protected method _getTitle ( )

Customize base get method for title prop.


protected method _onModelChange ( )

Watches the model for changes to the current content after the model has been updated.


protected method _onModelValueChange ( )

Overwrite base class, updates canExecute after the model value has changed.


public inherited method _watch ( property , callback , scope )

Attach a watch handler to the model

Parameters

public inherited method constructor ( )


public inherited method destroy ( )


public method dialogContentClass ( )

The widget namespace that will be created and placed as dialog's content


public inherited method execute ( )


public inherited method get ( name )

Get a property on a Stateful instance.

Parameters

public inherited method onDialogCancel ( )

Process value when dialog after it's hidden. It should be implemented from delivery


protected method onDialogExecute ( actionParams )

Process value returned from dialog after it's executed.

Parameters

public inherited method onDialogHideComplete ( )

Trigerred when dialog is closed.


public inherited method onDialogOpen ( )

Trigerred when dialog is opened.


protected method own ( )

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


public inherited method postscript ( )


public inherited method set ( name , value )

Set a property on a Stateful instance

Parameters

protected method showDialog ( )

Create and show dialog


public inherited method unwatchModelChange ( )


public inherited method watch ( name , callback )

Watches a property for changes

Parameters

public inherited method watchModelChange ( )