blob: 3008f9d8e1e229ebb1a0d48281d684fdc3f4f0a1 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
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 %}
|