diff options
author | 2017-05-04 07:48:42 -0400 | |
---|---|---|
committer | 2017-05-04 12:28:17 -0400 | |
commit | b54df0ddd0c6a0372327c5aa3668e5a6458fcd64 (patch) | |
tree | e69cfa9b314a801bd187cf0145d1d4306436229c /ecomp-portal-FE/client/bower_components/jqTree/_examples/04_save_state.html | |
parent | 39d1e62c84041831bfc52cca73b5ed5efaf57d27 (diff) |
[PORTAL-7] Rebase
This rebasing includes common libraries and common overlays projects
abstraction of components
Change-Id: I9a24a338665c7cd058978e8636bc412d9e2fdce8
Signed-off-by: st782s <statta@research.att.com>
Diffstat (limited to 'ecomp-portal-FE/client/bower_components/jqTree/_examples/04_save_state.html')
-rw-r--r-- | ecomp-portal-FE/client/bower_components/jqTree/_examples/04_save_state.html | 52 |
1 files changed, 0 insertions, 52 deletions
diff --git a/ecomp-portal-FE/client/bower_components/jqTree/_examples/04_save_state.html b/ecomp-portal-FE/client/bower_components/jqTree/_examples/04_save_state.html deleted file mode 100644 index 51962f6b..00000000 --- a/ecomp-portal-FE/client/bower_components/jqTree/_examples/04_save_state.html +++ /dev/null @@ -1,52 +0,0 @@ ---- -title: Save the state in javascript tree -layout: page -js: examples/save_state.js -css: example.css ---- - -<p id="nav"> - <a href="../03_drag_and_drop/">« Example 3</a> - <a href="../05_load_on_demand/" class="next">Example 5 »</a> -</p> - -<h1>Example 4 - Save the state</h1> - -<div id="tree1" data-url="/example_data/"></div> - -<p> - If you set the option <strong>saveState</strong> to true, then jqtree remembers the tree state after a page reload. -</p> -<ul> - <li> - JqTree save the state into localStorage. - If the browser does not support localStorage, then jqTree saves the state in a cookie. - </li> - <li> - You must include the <a href="https://github.com/carhartl/jquery-cookie">jquery-cookie</a> plugin for cookie support. - </li> -</ul> - -<h3>html</h3> - -{% highlight html %} -<div id="tree1" data-url="/example_data/"></div> -{% endhighlight %} - -<h3>javascript</h3> - -{% highlight js %} -$('#tree1').tree({ - saveState: true -}); -{% endhighlight %} - -<p> - Giving the <strong>saveState</strong> a string value sets the storage key. The default key is 'tree'. -</p> - -{% highlight js %} -$('#tree1').tree({ - saveState: 'my-tree' -}); -{% endhighlight %} |