TX Text Control .NET Server

ContextMenuItemClickEventArgs Object

Object|Introduced in 31.0

Description

Context menu item click event arguments.

Syntax

{
   item: <ContextMenuItem>,
   cancel: <boolean>
}

Examples

The following example demonstrates ContextMenuItemClickEventArgs in a practical document-editing workflow. Context menu item click event arguments.

function handleContextMenuItemClick(args) {
    console.log("item:", args.item);
    console.log("cancel:", args.cancel);
}

Members

Properties

PropertyDescription
cancelSet this to true to prevent the click from being sent to the backend. (Only relevant for built in context menu items)
itemThe clicked context menu item.