ContextMenu namespace
Functions
Function | Description |
---|---|
callbackFactory(block, state) | Create a callback function that creates and configures a block, then places the new block next to the original and returns it. |
dispose() | Dispose of the menu. |
getCurrentBlock() | Gets the block the context menu is currently attached to. It is not recommended that you use this function; instead, use the scope object passed to the context menu callback. |
hide() | Hide the context menu. |
setCurrentBlock(block) | Sets the block the context menu is currently attached to. |
show(menuOpenEvent, options, rtl, workspace, location) | Construct the menu based on the list of options and show the menu. |