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 the standard context menu invocation (on a right mouse click or on a long tap) is disabled.

Type:

Boolean

Default Value: false

If the option is set to true, the menu can be invoked using the show method, or 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.