TX Text Control .NET Server

ContextMenuEventArgs Object

Object|Introduced in 31.0

Description

The event argument for context menu related events.

Syntax

{
   items: <ContextMenuItem[]>,
   location: <number>,
   cancel: <boolean>
}

Examples

The following example demonstrates ContextMenuEventArgs in a practical document-editing workflow. The event argument for context menu related events.

function handleContextMenu(args) {
    console.log("items:", args.items);
    console.log("location:", args.location);
    console.log("cancel:", args.cancel);
}

Members

Properties

PropertyDescription
cancelSet this to true to suppress the context menu.
itemsContext menu items (see ContextMenuItem).
locationA binary combination of ContextMenuLocation values.