Sidebar
The Sidebar component is accessible as a Reactium.Handle object. You can gain access to the Sidebar by doing the following:
Properties
Property
Type
Description
collapsed
Boolean
The collapsed state of the Sidebar
expanded
Boolean
The expanded state of the Sidebar
Methods
collapse()
Collapse the Sidebar if it is expanded. The collapse
and collapsed
events are triggered.
Returns a Promise that resolves when the collapse animation is complete.
expand()
Expand the Sidebar if it is collapsed. The expand
and expanded
events are triggered.
Returns a Promise that resolves when the expand animation is complete.
Events
collapse
Triggered when the collapse animation starts as a side effect of collapse()
or toggle()
collapsed
Triggered when the collapse animation is completed as a side effect of collapse()
or toggle()
expand
Triggered when the expand animation starts as a side effect expand()
or toggle()
expanded
Triggered when the expand animation is completed as a side effect of collapse()
or toggle()
resize
Triggered during the expand/collapse animation. The current width of the sidebar is provided as a property on the event.
Last updated