DS Server

Javascript: ContextMenuItem.isEnabled Property

Property|Introduced in 31.0

Description

Optional. Specifies whether the menu item is enabled or not. The default value is true.

Syntax

<boolean> ContextMenuItem.isEnabled

Examples

The following example demonstrates ContextMenuItem.isEnabled in a practical document-editing workflow. Optional. Specifies whether the menu item is enabled or not. The default value is true.

function inspectIsEnabled(contextMenuItem) {
    const isEnabled = contextMenuItem.isEnabled;
    console.log("is enabled:", isEnabled);
}