Overview
A context menu control.
Inherited Variables
mindfusion.controls.MenuItem
access | name | type | Can Read | Can Init | Can Write | Default Value | description |
---|---|---|---|---|---|---|---|
public | action | function(:MenuItem):Void | ![]() | ![]() | ![]() |
Invoked when the user clicks on the menu item. |
|
public | content | Node | ![]() | ![]() | ![]() |
A node representing the menu item contents. |
|
public | enabled | Boolean | ![]() | ![]() | ![]() | true |
A value indicating whether the item is enabled. |
public | items | Byte[] | ![]() | ![]() | ![]() |
The menu subitems, if any. |
|
public-read | parentItem | MenuItem | ![]() |
The parent menu item, if this item is a child to another menu item. |
|||
public | tag | Object | ![]() | ![]() | ![]() |
An user-defined object, associated with the item. |
Function Summary
- public show(parent: Node, x: Number, y: Number) : Void
-
Displays the context menu for the specified node at the specified coordinates, relative to the node's bounding box.
Displays the context menu for the specified node at the specified coordinates, relative to the node's bounding box. The context menu must have been previously added to the node graph.
-
Parameters
- parent
- The node for which to display the menu.
- x
- The x-coordinate of the mouse relative to the specified node.
- y
- The y-coordinate of the mouse relative to the specified node.