summaryrefslogtreecommitdiffstats
path: root/ecomp-portal-FE/client/bower_components/jqTree/_entries/47_loaddata.md
diff options
context:
space:
mode:
authorst782s <statta@research.att.com>2017-05-04 07:48:42 -0400
committerst782s <statta@research.att.com>2017-05-04 12:28:17 -0400
commitb54df0ddd0c6a0372327c5aa3668e5a6458fcd64 (patch)
treee69cfa9b314a801bd187cf0145d1d4306436229c /ecomp-portal-FE/client/bower_components/jqTree/_entries/47_loaddata.md
parent39d1e62c84041831bfc52cca73b5ed5efaf57d27 (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/_entries/47_loaddata.md')
-rw-r--r--ecomp-portal-FE/client/bower_components/jqTree/_entries/47_loaddata.md46
1 files changed, 0 insertions, 46 deletions
diff --git a/ecomp-portal-FE/client/bower_components/jqTree/_entries/47_loaddata.md b/ecomp-portal-FE/client/bower_components/jqTree/_entries/47_loaddata.md
deleted file mode 100644
index fb010961..00000000
--- a/ecomp-portal-FE/client/bower_components/jqTree/_entries/47_loaddata.md
+++ /dev/null
@@ -1,46 +0,0 @@
----
-title: loadData
-name: functions-loaddata
----
-
-**function loadData(data);**
-
-**function loadData(data, parent_node);**
-
-Load data in the tree. The data is array of nodes.
-
-You can **replace the whole tree** or you can **load a subtree**.
-
-{% highlight js %}
-// Assuming the tree exists
-var new_data = [
- {
- name: 'node1',
- children: [
- { name: 'child1' },
- { name: 'child2' }
- ]
- },
- {
- name: 'node2',
- children: [
- { name: 'child3' }
- ]
- }
-];
-$('#tree1').tree('loadData', new_data);
-{% endhighlight %}
-
-Load a subtree:
-
-{% highlight js %}
-// Get node by id (this assumes that the nodes have an id)
-var node = $('#tree1').tree('getNodeById', 100);
-
-// Add new nodes
-var data = [
- { name: 'new node' },
- { name: 'another new node' }
-];
-$('#tree1').tree('loadData', data, node);
-{% endhighlight %}