open([position], [invoker])
Class: ContextMenu.
Description:
Open the menu with all its ancestor menus or context menu.
Parameters:
| Name | Type | Default | Description |
|---|---|---|---|
|
|
object |
null |
Example: {x: 100, y: 100}. Used to specify position where to open the ContextMenu. If invoker is specified, then position is relative to position of invoker component, otherwise it a screen position. |
|
|
object |
null |
Used to set invoker if the context menu isn't assigned to any object and you want to be able to get invoker by using "invoker" getter. |
Returns:
Returns this ContextMenu instance.
Type: ContextMenu
