I'm using the jstree jquery plugin to build a tree with ~330nodes in 3 different levels.
When I add the checkbox plugin to add checkboxes to each tree node, i receive the error Uncaught TypeError: Cannot read property 'selected' of undefined. The div where the tree is set to appear just shows a Loading message. $(document).ready(function() {
buildTreeJson((testTree) => {
$(function () { $('#jstreetest').jstree({
"core" : {
"data" : testTree,
"themes" : {
"variant" : "large"
}
},
"checkbox" : {
"keep_selected_style" : false
},
"plugins": ["themes", "checkbox", "changed"]
}); });
});
...
Removing the checkbox plugin I have no issues.
Aucun commentaire:
Enregistrer un commentaire