Menu API

Methods
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
hide hides an item of Menu
isDisabled checks whether an item of Menu is disabled
paint repaints Menu on a page
show shows an item of Menu
showAt shows a context menu

Tree Collection

add adds an item to a component
canCopy checks whether it is possible to copy a control into some other control
copy adds a copy of an item and places it in the specified position
eachChild iterates through child items of a control
eachParent iterates through all the parent items (the immediate parent and its parent, etc until the parent is the component itself)
exists checks if the control exists
filter filters controls by some criteria
forEach iterates over all items of a tree collection
getId gets the ID of an item
getIndex gets the current position of an item
getItem gets an item by its ID
getItems gets the child items of a control
getLength counts child items of a control
getParent gets the ID of the parent of the control
getRoot returns the ID of the master component
haveItems checks whether an item has children
isSaved checks whether the changes made in a tree collection are saved to the server side
load loads items from a file
loadItems loads child items of a control from a file
move moves items to different positions
parse loads a collection of items from a local source
refreshItems refreshes child items of a control
remove removes an item
removeAll clears the component of all controls
restoreOrder restores the component to the state previous to sorting / filtering
save saves changes made in a tree collection to the server side
serialize returns a collection of all items
sort sorts controls according to some criteria
update changes an item
Events
afterHide fires after hiding an item of Menu
beforeHide fires before hiding an item of Menu
click fires after a click on a control
inputBlur fires when a control is blurred
inputCreated fires when a new input is added
inputFocus fires when a control is focused
openMenu fires on expanding a menu control

Tree Collection

afterAdd fires after adding a new item into a tree collection
afterRemove fires after removing a new item from a tree collection
beforeAdd fires before adding a new item into a tree collection
beforeRemove fires before removing an item from a tree collection
change fires when a tree collection is modified
load fires when items are loaded in a tree collection
loadError fires when loading of data fails
removeAll fires when all items are removed from a tree collection
Properties
css adds style classes to menu
data specifies an array of data objects to set into Menu
menuCss adds style classes to all containers of Menu controls with nested items
navigationType defines the action that opens menu options
Back to top