Javascript for Episerver 7.5 cms

_CommandWithDialogMixin (constructor)

Summary

The base class for all edit commands wanna use dialog as an editor.

Description

That supports: - Create a dialog - Interface to update value

Location

epi-cms/contentediting/command/_CommandWithDialogMixin

Extends

Properties

_dialog

cancelActionText

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

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.

dialogContentClass

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

dialogContentParams

The parameters for create new instance of dialogContentClass.

dialogParams

The parameters for create new instance of dialog.

module

"epi-cms/contentediting/command/_CommandWithDialogMixin"

res

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

title

The dialog's title.

value

The value of item that being edited.

Methods

protected method _getTitle ( )

Customize base get method for title prop.


public inherited method destroy ( preserveDom )

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

Parameters

public method onDialogCancel ( )

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


public method onDialogExecute ( )

Process value returned from dialog after it's executed. It should be implemented from delivery


public method onDialogHideComplete ( )

Trigerred when dialog is closed.


public 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.


protected method showDialog ( )

Create and show dialog