Skip to main content

Menu API overview

Menu methods#

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.

Menu events#

NameDescription
afterHidefires after hiding an item of Menu
beforeHidefires before hiding an item of Menu
clickfires after a click on a button or a menu option
inputBlurfires when a control is blurred
inputCreatedfires when a new input is added
inputFocusfires when a control is focused
openMenufires on expanding a menu item
important

Use TreeCollection events to work with data.

Menu properties#

NameDescription
cssadds style classes to Menu
dataspecifies an array of data objects to set into Menu
menuCssadds style classes to all containers of Menu controls with nested items
navigationTypedefines the action that opens menu options

Menu MenuItem properties#

A MenuItem control can possess the following properties.

Menu NavItem properties#

A NavItem control may have 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.