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