TX Text Control .NET Server

Javascript: ContextMenuItemClickEventArgs.cancel Property

Property|Introduced in 31.0

Description

Set this to true to prevent the click from being sent to the backend. (Only relevant for built in context menu items)

Syntax

<boolean> ContextMenuItemClickEventArgs.cancel

Examples

The following example demonstrates ContextMenuItemClickEventArgs.cancel in a practical document-editing workflow. Set this to true to prevent the click from being sent to the backend. (Only relevant for built in context menu items).

function inspectCancel(contextMenuItemClickEventArgs) {
    const cancel = contextMenuItemClickEventArgs.cancel;
    console.log("cancel:", cancel);
}