setState

sets the state of a sidebar

void setState(object state);

Parameters

stateobjectthe state object

Example

webix.storage.local.put("state", $$("sidebar1").getState());
...
 
var state = webix.storage.local.get("state");
if (state)
    $$("sidebar1").setState(state);

Details

The method restores the selected item, the opened parent item, and the collapsed/expanded component.

See also
Back to top