Javascript: ContextMenuItem.clickHandler Property
Description
Optional. The custom menu item's click handler callback function.
Syntax
<ContextMenuItemClickHandler> ContextMenuItem.clickHandlerExamples
The following example demonstrates ContextMenuItem.clickHandler in a practical document-editing workflow. Optional. The custom menu item's click handler callback function.
function inspectClickHandler(contextMenuItem) {
const clickHandler = contextMenuItem.clickHandler;
console.log("click handler:", clickHandler);
}