DS Server

Javascript: ContextMenuItem.text Property

Property|Introduced in 31.0

Description

The menu item text. Set this to an empty string to add a horizontal separator line.

Syntax

<string> ContextMenuItem.text

Examples

The following example demonstrates ContextMenuItem.text in a practical document-editing workflow. The menu item text. Set this to an empty string to add a horizontal separator line.

function inspectText(contextMenuItem) {
    const text = contextMenuItem.text;
    console.log("text:", text);
}