Javascript: ContextMenuItem.isChecked Property
Description
Optional. Specifies whether the menu item has a check mark symbol in front of it. The default value is false.
Syntax
<boolean> ContextMenuItem.isCheckedExamples
The following example demonstrates ContextMenuItem.isChecked in a practical document-editing workflow. Optional. Specifies whether the menu item has a check mark symbol in front of it. The default value is false.
function inspectIsChecked(contextMenuItem) {
const isChecked = contextMenuItem.isChecked;
console.log("is checked:", isChecked);
}