alternativeInvocationMode

Holds an object that specifies options of alternative menu invocation.

Type:

Object

Default Value: { enabled: false, invokingElement: null }

Show Example:
AngularJS
Knockout
jQuery

enabled

Specifies whether or not an alternative invocation mode is enabled.

Type:

Boolean

Default Value: false

If the option is set to true, the standard context menu invocation (on a right mouse click or on a long tap) is disabled, and the menu can be invoked on an invoking element click.

invokingElement

Specifies the element used to invoke the context menu.

Type:

String

|

DOM Node

|

jQuery

Default Value: false

If this option is defined, the context menu is invoked on the specified element click.

This option can take on one of the following values.

JavaScript
//CSS selector
invokingElement: '#myElement';

//jQuery wrapper
invokingElement: $('#myElement');

//DOM element
invokingElement: document.getElementById('myElement');

The option makes sense only if the enabled option is set to true.