Menu API overview
Menu methods
| Name | Description |
|---|---|
| destructor() | removes a Menu instance and releases occupied resources |
| disable() | disables and dims an item(s) of Menu |
| enable() | enables a disabled item(s) of Menu |
| getSelected() | returns an array of IDs of selected items |
| hide() | hides an item of Menu |
| isDisabled() | checks whether an item of Menu is disabled |
| isSelected() | checks whether a specified Menu item is selected |
| paint() | repaints Menu on a page |
| select() | selects a specified item of Menu |
| show() | shows an item of Menu |
| showAt() | shows a context menu |
| unselect() | unselects a selected Menu item |
important
Use TreeCollection methods to work with data.
Menu events
| Name | Description |
|---|---|
| afterHide | fires after hiding a sub-item of Menu |
| beforeHide | fires before hiding a sub-item of Menu |
| click | fires after a click on a button or a menu option |
| keydown | fires when any key is pressed and an option of Menu is in focus |
| openMenu | fires on expanding a menu item |
important
Use TreeCollection events to work with data.
Menu properties
| Name | Description |
|---|---|
| css | Optional. Adds style classes to Menu |
| data | Optional. Specifies an array of data objects to set into Menu |
| menuCss | Optional. Adds style classes to all containers of Menu controls with nested items |
| navigationType | Optional. Defines the action that opens menu options |
Menu MenuItem properties
A MenuItem control can possess the following properties.
Menu Custom HTML properties
A Custom HTML control may possess the following properties.
Menu Separator properties
A Separator control can have the following properties.
Menu Spacer properties
A Spacer control can possess the following properties.