Skip to content

Instantly share code, notes, and snippets.

@elidrissidev
elidrissidev / script.js
Created August 2, 2020 10:10
JsTree example with lazy loading and checked state cascading turned off
$(document).ready(function() {
$('.jstree').jstree({
core: {
data: {
url: function(node) {
return node.id === '#' ?
'categories.json' :
`categories-${node.id}.json`;
}