$(function () { $('#test').jstree({
"core" : {
"data" : [
{
"text" : "Root",
"state" : { "opened" : true },
"children" : [
{ "text" : "Test 1",
"children" : [
{ "text" : "Child 1" },
{ "text" : "Child 2" },
{ "text" : "Child 3" },
{ "text" : "Child 4" }]},
{ "text" : "Test 2",
"children" : [
{ "text" : "Child 5",
"children" : [
{ "text" : "Subchild 1" },
{ "text" : "Subchild 2" },
{ "text" : "Subchild 3" },
{ "text" : "Subchild 4" },
{ "text" : "Subchild 5" }]},
{ "text" : "Child 6" },
{ "text" : "Child 7" },
{ "text" : "Child 8" }]},
{ "text" : "Test 3",
"children" : [
{ "text" : "Child 9",
"children" : [
{ "text" : "Subchild 6" },
{ "text" : "Subchild 7" }]},
{ "text" : "Child 10" },
{ "text" : "Child 11" }]},
{ "text" : "Test 4",
"children" : [
{ "text" : "Child 12" },
{ "text" : "Child 13" }]},
]
},
],
"check_callback" : true, // check_callback to TRUE so that create works
"themes" : { "variant" : "large", "icons" : false },
"multiple" : true
},
"checkbox" : {
"whole_node" : false,
//"keep_selected_style" : false,
"three_state" : true
},
"state" : {
"key" : "test_state"
},
"search" : {
"fuzzy" : false
},
"plugins" : [ "checkbox", "contextmenu", "dnd", "search", "state" ]
});
Cheers