Skip to main content

ASPxClientCommandConsts.CHANGEELEMENTPROPERTIES_DIALOG_COMMAND Property

Identifies a command that invokes the Change Element Properties dialog.

Declaration

static CHANGEELEMENTPROPERTIES_DIALOG_COMMAND: string

Property Value

Type Description
string

Value: “changeelementpropertiesdialog”

Remarks

The CHANGEELEMENTPROPERTIES_DIALOG_COMMAND property can be used in the following ways.

  • In the ASPxClientHtmlEditor.CommandExecuted event — to determine the action performed by an end-user. If the ASPxClientHtmlEditorCommandEventArgs.commandName event parameter returns the CHANGEELEMENTPROPERTIES_DIALOG_COMMAND property value, this means that an end-user clicked the TagInspectorChangeElementButton button in the tag inspector.
  • In the ASPxClientHtmlEditor.ExecuteCommand method — to execute the command manually.

    In this case, the method requires an additional parameter, which is an html object with the selectedElement property representing the element to be changed

    //invokes the "Change Element Properties" dialog to change the 'myElement' element
    var param = { selectedElement: htmlEditor.GetDesignViewDocument().getElementById('myElement') };
    htmlEditor.ExecuteCommand(ASPxClientCommandConsts.CHANGEELEMENTPROPERTIES_DIALOG_COMMAND, param);
    

Note

This command is available only in the Design View.

See Also