You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+23-5Lines changed: 23 additions & 5 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -271,8 +271,18 @@ Here is an example of its usage:
271
271
value: 'Prototype-based programming',
272
272
settings: {
273
273
'static': true,
274
-
'rightMenu': true,
275
-
'leftMenu': true
274
+
'rightMenu': true,
275
+
'leftMenu': true,
276
+
'cssClasses': {
277
+
'expanded': 'fa fa-caret-down fa-lg',
278
+
'collapsed': 'fa fa-caret-right fa-lg',
279
+
'leaf:': 'fa fa-lg'
280
+
},
281
+
'templates': {
282
+
'node': '<i class="fa fa-folder-o fa-lg"></i>',
283
+
'leaf': '<i class="fa fa-file-o fa-lg"></i>',
284
+
'leftMenu': '<i class="fa fa-navicon fa-lg"></i>'
285
+
}
276
286
},
277
287
children: [
278
288
{value: 'JavaScript'},
@@ -282,9 +292,17 @@ Here is an example of its usage:
282
292
}
283
293
```
284
294
285
-
*`static` - This option makes it impossible to drag a tree or modify it in a some way, though you still can select nodes in the static tree and appropriate events will be generated.
286
-
*`rightMenu` - This option allows you to activate (true, by default) or deactivate (false) right menu when clicking with right button of a mouse.
287
-
*`leftMenu` - This option allows you to activate (true) or deactivate (false, by default) left menu.
295
+
*`static` - Boolean - This option makes it impossible to drag a tree or modify it in a some way, though you still can select nodes in the static tree and appropriate events will be generated.
296
+
*`rightMenu` - Boolan - This option allows you to activate (true, by default) or deactivate (false) right menu when clicking with right button of a mouse.
297
+
*`leftMenu` - Boolean - This option allows you to activate (true) or deactivate (false, by default) left menu.
298
+
*`cssClasses` - Object:
299
+
*`expanded` - String - It specifies a css class (or classes) for an item which represents expanded state of a node. The item is clickable and it transitions the node to the collapsed state
300
+
*`collapsed` - String - It specifies a css class (or classes) for an item which represents collapsed state of a node. The item is clickable and it transitions the node to the expanded state
301
+
*`leaf` - String - It specifies a css class (or classes) for an item which represents a node without an option to expand or collapse - in other words: a leaf node.
302
+
*`templates` - Object:
303
+
*`node` - String - It specifies a html template which will be included to the left of the node's value.
304
+
*`leaf` - String - It specifies a html template which will be included to the left of the leaf's value.
305
+
*`leftMenu` - String - It specifies a html template to the right of the node's value. This template becomes clickable and shows a menu on node's click.
288
306
289
307
All options that's defined on a `parent` are automatically applied to children. If you want you can override them by `settings` of the child node.
0 commit comments