gui » context-menu » custom-items

custom-items

[ root » gui » context-menu » custom-items ]

Use the customItems array to add additional items to the context menu. Refer to the Context Menu Tutorial for more information.


AttributeTypeInfo
functionString

Sets a JavaScript function/portion of code that will be executed when the respective menu item is selected.

"doSomething()" | "alert(1)" | ...

idString

Sets the ID of the menu item.

"myid" | "f1" | ...

textString

Sets the text for the menu item.

"New Menu Item" | ...