menuItems

Specifies the array of items for a context menu called for a list item.

Type:

Array<Object>

Default Value: []

action

Holds on a function called when the item is clicked.

Type:

function

Function parameters:
itemElement:

Element (jQuery or HTML)

The clicked item's container. It is an HTML Element or a jQuery Element when you use jQuery.

itemData:

Object

The item's data.

text

Specifies the menu item text.

Type:

String