setState of ui.sidebar, Methods Webix Docs

StartAPI Referenceui.sidebarMethods

sets the state of a sidebar

void setState(object state);

state

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

  • 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.

    Go to Forum