source: public/assets/js/examples/treeview.js@ e78295c

Last change on this file since e78295c was 194a359, checked in by beratkjufliju <kufliju@…>, 3 years ago

added departments, edited users and added user settings

  • Property mode set to 100644
File size: 2.1 KB
Line 
1'use strict';
2$(document).ready(function () {
3
4 $('#jstree_demo1').jstree({'core' : {
5 'data' : [
6 {
7 "text" : "Same but with checkboxes",
8 "children" : [
9 { "text" : "initially selected", "state" : { "selected" : true } },
10 { "text" : "custom icon URL", "icon" : "//jstree.com/tree-icon.png" },
11 { "text" : "initially open", "state" : { "opened" : true }, "children" : [ "Another node" ] },
12 { "text" : "custom icon class", "icon" : "glyphicon glyphicon-leaf" }
13 ]
14 },
15 "And wholerow selection"
16 ]
17 }});
18
19 $('#jstree_demo2').jstree({'plugins':["wholerow"], 'core' : {
20 'data' : [
21 {
22 "text" : "Same but with checkboxes",
23 "children" : [
24 { "text" : "initially selected", "state" : { "selected" : true } },
25 { "text" : "custom icon URL", "icon" : "//jstree.com/tree-icon.png" },
26 { "text" : "initially open", "state" : { "opened" : true }, "children" : [ "Another node" ] },
27 { "text" : "custom icon class", "icon" : "glyphicon glyphicon-leaf" }
28 ]
29 },
30 "And wholerow selection"
31 ]
32 }});
33
34 $('#jstree_demo3').jstree({'plugins':["wholerow", "checkbox"], 'core' : {
35 'data' : [
36 {
37 "text" : "Same but with checkboxes",
38 "children" : [
39 { "text" : "initially selected", "state" : { "selected" : true } },
40 { "text" : "custom icon URL", "icon" : "//jstree.com/tree-icon.png" },
41 { "text" : "initially open", "state" : { "opened" : true }, "children" : [ "Another node" ] },
42 { "text" : "custom icon class", "icon" : "glyphicon glyphicon-leaf" }
43 ]
44 },
45 "And wholerow selection"
46 ]
47 }});
48
49});
Note: See TracBrowser for help on using the repository browser.