3 name: options-savestate
6 Save and restore the state of the tree automatically. Saves in a cookie which nodes are opened and selected.
8 The state is saved in localstorage. In browsers that do not support localstorage, the state is saved in a cookie.
9 For this to work, please include [jquery-cookie](https://github.com/carhartl/jquery-cookie).
11 For this to work, you should give each node in the tree data an id field:
24 * **true**: save and restore state in a cookie
25 * **false (default)**: do nothing
26 * **string**: save state and use this name to store in a cookie
35 Example: save state in key 'tree1':