Javascript: ContextMenuItem.text Property
Description
The menu item text. Set this to an empty string to add a horizontal separator line.
Syntax
<string> ContextMenuItem.textExamples
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);
}