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

function

String

Demo

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

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

id

String

Demo

Sets the ID of the menu item.

"myid" | "f1" | ...

text

String

Demo

Sets the text for the menu item.

"New Menu Item" | ...