diff options
Diffstat (limited to 'ecomp-portal-FE/client/bower_components/jqTree/_entries/45_getstate.md')
-rw-r--r-- | ecomp-portal-FE/client/bower_components/jqTree/_entries/45_getstate.md | 19 |
1 files changed, 0 insertions, 19 deletions
diff --git a/ecomp-portal-FE/client/bower_components/jqTree/_entries/45_getstate.md b/ecomp-portal-FE/client/bower_components/jqTree/_entries/45_getstate.md deleted file mode 100644 index 04e0684c..00000000 --- a/ecomp-portal-FE/client/bower_components/jqTree/_entries/45_getstate.md +++ /dev/null @@ -1,19 +0,0 @@ ---- -title: getState -name: functions-getstate ---- - -Get the state of tree: which nodes are open and which one is selected? - -Returns a javascript object that contains the ids of open nodes and selected nodes: - -{% highlight js %} -{ - open_nodes: [1, 2, 3], - selected_node: [4, 5, 6] -} -{% endhighlight %} - -If you want to use this function, then your tree data should include an **id** property for each node. - -You can use this function in combination with [setState](#functions-setstate) to save and restore the tree state. |