setState

restores the specified state

void setState(object state);

Parameters

stateobjectthe state object

Available only in PRO Edition

Example

webix.storage.local.put("state", webix.UIManager.getState("mylayout", true));
...
 
var state = webix.storage.local.get("state");
if (state)
    webix.UIManager.setState(state);

Details

The state object reflects UI configuration of the specified view.


The get/setState methods of the UIManager class is similar to the same-name methods from the DataState class.

The difference lies in the following:

  • the UIManager methods allows you to save and restore outer visual scheme (layout) of the specified view (that allows restoring general view structure);
  • the DataState methods save and restore the information about inner configuration of the view (selection, sorting direction etc.).
See also
Back to top