ContextualMenu Class
ContextualMenu
Constructor
ContextualMenu
(
-
values
-
options
Parameters:
-
values
Array(allows object { title: "Nice text", callback: function ... })
-
options
Object[optional] Some options:\ - title: title to show on top of the menu - callback: function to call when an option is clicked, it receives the item information - ignore_item_callbacks: ignores the callback inside the item, it just calls the options.callback - event: you can pass a MouseEvent, this way the ContextualMenu appears in that position