getState

returns the current state of the sidebar

object getState();
objectthe state object

Example

$$("sidebar1").getState();

Details

The state object reflects the UI configuration of a sidebar, including its collapsed / expanded state.

For example, for a collapsed sidebar the method will return an object like this:

{
  "collapsed": true,
  "open": [],
  "select": [
    "accordions"
  ]
}
See also
Back to top
Join Our Forum
We've retired comments here. Visit our forum for faster technical support, connect with other developers, and share your feedback there.