TX Text Control .NET Server

Javascript: ContextMenuEventArgs.cancel Property

Property|Introduced in 31.0

Description

Set this to true to suppress the context menu.

Syntax

<boolean> ContextMenuEventArgs.cancel

Examples

The following example demonstrates ContextMenuEventArgs.cancel in a practical document-editing workflow. Set this to true to suppress the context menu.

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