Code Review
/
portal.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
review
|
tree
history
|
raw
|
HEAD
Initial OpenECOMP Portal commit
[portal.git]
/
ecomp-portal-FE
/
client
/
bower_components
/
jqTree
/
_entries
/
17_datafilter.md
1
---
2
title: dataFilter
3
name: options-datafilter
4
---
5
6
Process the tree data from the server.
7
8
{% highlight js %}
9
$('#tree1').tree({
10
dataUrl: '/my/data/',
11
dataFilter: function(data) {
12
// Example:
13
// the server puts the tree data in 'my_tree_data'
14
return data['my_tree_data'];
15
}
16
});
17
{% endhighlight %}