A menuItem is used to place a pickable item in the right-click menu. The syntax for a menuItem is:
Used to refer to when writing an event handler.
The string that appears in the right-click menu.
Specifies if a check mark appears before the label in the right-click menu. If true the item is checked, otherwise the item is unchecked.
Specifies if the item is enabled for interaction when the right-click menu is opened. If true the item is enabled, otherwise the item is disabled and appears unavailable.
A function that returns a Boolean value. The filter function is evaluated when the right-click menu is first opened. If the filter function returns true the menuItem appears in the menu, otherwise it is not displayed.
The string that appears in the right-click menu.
Specifies if a check-mark appears before the label in the right-click menu. If true the item is checked, otherwise the item is unchecked.
Specifies if the item is enabled for interaction when the right-click menu is opened. If true the item is enabled, otherwise the item is disabled and appears as unavailable.
Called when the user clicks the menu item.