getState of ui.tree, Methods Webix Docs
returns the current state of the view
object getState();
| object | the state object |
Example
tree.getState();
Details
The state object reflects the UI configuration of the view.
For example, for Tree shown below:

the state object will look as in:
{
open: ["1","root"],
select:["1.2"],
}
See also
API
Articles
If you have not checked yet, be sure to visit site of our main product Webix javascript website framework and page of html treeview product.