retrieves the current state of the specified view
id | string | the view id |
children | boolean | defines whether the state object besides configuration of the specified view should contain configuration of its children views. By default - false |
object | the state object |
Available only in PRO Edition
webix.UIManager.getState("mylayout", true);
The state object reflects UI configuration of the specified view.
And it looks as in:
{
gravity: 1
height: 0 //returns 0 if the property isn't specified
id: "myview"
width: 0
}
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) while the DataState methods save and restore the information about inner configuration of the view (selection, sorting direction etc.).