setState of ui.sidebar, Methods Webix Docs
objectthe 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
API
Articles
Join Our Forum
We've retired comments here. Visit our forum for faster technical support, connect with other developers, and share your feedback there.