sets the state of a sidebar
state | object | the state object |
webix.storage.local.put("state", $$("sidebar1").getState());
...
var state = webix.storage.local.get("state");
if (state)
$$("sidebar1").setState(state);
The method restores the selected item, the opened parent item, and the collapsed/expanded component.