Skip to main content

Sidebar API overview

NameDescription
collapse()collapses a sidebar
destructor()removes a Sidebar instance and releases occupied resources
disable()disables and dims items of Sidebar
enable()enables disabled items of Sidebar
expand()expands a sidebar
getSelected()returns an array of IDs of selected items
hide()hides items of Sidebar
isCollapsed()checks whether Sidebar is collapsed
isDisabled()checks whether an item of Ribbon is disabled
isSelected()checks whether a specified Sidebar item is selected
paint()repaints Sidebar on a page
select()selects a specified Sidebar item
show()shows items of Sidebar
toggle()expands/collapses Sidebar
unselect()unselects a selected Sidebar item
important

Use TreeCollection methods to work with data.

NameDescription
afterCollapsefires after collapsing a sidebar
afterExpandfires after expanding a sidebar
afterHidefires after hiding a sub-item of Sidebar
beforeCollapsefires before collapsing a sidebar
beforeExpandfires before expanding a sidebar
beforeHidefires before hiding a sub-item of Sidebar
clickfires after a click on a control
inputBlurfires when a control is blurred
inputCreatedfires when a new input is added
inputFocusfires when a control is focused
keydownfires when any key is pressed and a Sidebar option is in focus
openMenufires on expanding a menu control
important

Use TreeCollection events to work with data.

NameDescription
collapsedOptional. Defines that a sidebar is initialized in the collapsed state
cssOptional. Adds style classes to Sidebar
dataOptional. Specifies an array of data objects to set into Sidebar
menuCssOptional. Adds style classes to all containers of Sidebar controls with nested items
minWidthOptional. Sets the minimal width of a sidebar in the collapsed state
widthOptional. Sets the width of a sidebar

A Custom HTML control can possess the following properties.

A MenuItem control may have the following properties.

A NavItem control can have the following properties.

A Separator control may possess the following properties.

A Spacer control may have the following properties.

A Title control may possess the following properties.