diff options
Diffstat (limited to 'ecomp-portal-FE/client/bower_components/jqTree/_entries/24_oncreateli.md')
-rw-r--r-- | ecomp-portal-FE/client/bower_components/jqTree/_entries/24_oncreateli.md | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/ecomp-portal-FE/client/bower_components/jqTree/_entries/24_oncreateli.md b/ecomp-portal-FE/client/bower_components/jqTree/_entries/24_oncreateli.md new file mode 100644 index 00000000..3008f9d8 --- /dev/null +++ b/ecomp-portal-FE/client/bower_components/jqTree/_entries/24_oncreateli.md @@ -0,0 +1,16 @@ +--- +title: onCreateLi +name: options-oncreateli +--- + +The function is called for each created node. You can use this to define extra html. + +{% highlight js %} +$('#tree1').tree({ + data: data, + onCreateLi: function(node, $li) { + // Add 'icon' span before title + $li.find('.jqtree-title').before('<span class="icon"></span>'); + } +}); +{% endhighlight %} |