Box
Map
A newer version of this page is available. Switch to the current version.

JavaScript/jQuery List - 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:

HTMLElement | jQuery

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