but with Jstree V3.
[
{
"text": "Permessi",
"parent": "#",
"li_attr": {
"id": 0
},
"id": 0
},
{
"text": "Giovanna Codelupi",
"parent": 0,
"li_attr": {
"id": "category_Giovanna Codelupi"
},
"id": "333"
},
{
"text": "Visibilit\u00e0",
"state": {
"disabled": true,
"checked": false
},
"id": 1,
"parent": "333",
"li_attr": {
"id": "permission_1"
}
},
{
"text": "Accesso HB",
"state": {
"disabled": true,
"checked": false
},
"id": 4,
"parent": 1,
"li_attr": {
"id": "permission_4"
}
},
{
"text": "Test",
"state": {
"disabled": false,
"checked": false
},
"id": 5,
"parent": 2,
"li_attr": {
"id": "permission_5"
}
},
{
"text": "Men\u00f9 HB dispositivo",
"state": {
"disabled": true,
"checked": false
},
"id": 3,
"parent": "333",
"li_attr": {
"id": "permission_3"
}
},
{
"text": "Uscita",
"state": {
"disabled": false,
"checked": false
},
"id": 2,
"parent": "333",
"li_attr": {
"id": "permission_2"
}
}
]$(function () {
$("#plugins_test").jstree({
checkbox : {
'three_state' : true
},
"plugins" : [ "checkbox","types"],
'core': {
'data': {
'url': "{% url json%}",
'type': 'Get',
'dataType': 'JSON',
}
}
})
})
So when I check a parent of disabled checkbox it cheched too, and of course the function get_selected return me disable checkbox.
I'm try with types too but it's not work.