$('#treeViewContainer').jstree({
"types": {
"#": {
"valid_children": ["floor", "default"],
},
"default": {
"valid_children": ["default", "floor"],
"icon": "/app/assets/img/expand.png"
},
"floor": {
"icon": "/app/assets/img/collapse.png"
}
},
"plugins": ["types"],
'core': {
'data': [
{
"text": "Reporting Entities", "children": [
{
"text": "Life & Retirement",
"children": [
{
id: "1.1",
"text": "AGL"
},
{
id: "1.2",
"text": "ALBA"
},
{
id: "1.3",
"text": "USL"
},
{
id: "1.4",
"text": "VALIC"
},
{
id: "1.5",
"text": "Other"
}
]
},
{
id: "2",
"text": "Property & Casualty"
},
{
id: "3",
"text": "UGC"
}
]
}
]
}
});