Skip to main content

Menu API overview

NameDescription
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.

NameDescription
afterHidefires after hiding a sub-item of Menu
beforeHidefires before hiding a sub-item of Menu
clickfires after a click on a button or a menu option
keydownfires when any key is pressed and an option of Menu is in focus
openMenufires on expanding a menu item
important

Use TreeCollection events to work with data.

NameDescription
cssOptional. Adds style classes to Menu
dataOptional. Specifies an array of data objects to set into Menu
menuCssOptional. Adds style classes to all containers of Menu controls with nested items
navigationTypeOptional. Defines the action that opens menu options

A MenuItem control can possess the following properties.

A Custom HTML control may possess the following properties.

A Separator control can have the following properties.

A Spacer control can possess the following properties.