ContextMenu

ContextMenu

ContextMenu

Constructor

# new ContextMenu(values, options)

Parameters:
Name Type Description
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 ContextMenu appears in that position