copy dari repo om Irfan

This commit is contained in:
2026-06-13 16:02:07 +10:00
commit db327c0305
5376 changed files with 2770667 additions and 0 deletions
@@ -0,0 +1,125 @@
(function( $ ) {
'use strict';
/*
Basic
*/
$('#treeBasic').jstree({
'core' : {
'themes' : {
'responsive': false
}
},
'types' : {
'default' : {
'icon' : 'fa fa-folder'
},
'file' : {
'icon' : 'fa fa-file'
}
},
'plugins': ['types']
});
/*
Checkbox
*/
$('#treeCheckbox').jstree({
'core' : {
'themes' : {
'responsive': false
}
},
'types' : {
'default' : {
'icon' : 'fa fa-folder'
},
'file' : {
'icon' : 'fa fa-file'
}
},
'plugins': ['types', 'checkbox']
});
/*
Ajax HTML
*/
$('#treeAjaxHTML').jstree({
'core' : {
'themes' : {
'responsive': false
},
'check_callback' : true,
'data' : {
'url' : function (node) {
return 'assets/ajax/ajax-treeview-nodes.html';
},
'data' : function (node) {
return { 'parent' : node.id };
}
}
},
'types' : {
'default' : {
'icon' : 'fa fa-folder'
},
'file' : {
'icon' : 'fa fa-file'
}
},
'plugins': ['types']
});
/*
Ajax JSON
*/
$('#treeAjaxJSON').jstree({
'core' : {
'themes' : {
'responsive': false
},
'check_callback' : true,
'data' : {
'url' : function (node) {
return node.id === '#' ? 'assets/ajax/ajax-treeview-roots.json' : 'assets/ajax/ajax-treeview-children.json';
},
'data' : function (node) {
return { 'id' : node.id };
}
}
},
'types' : {
'default' : {
'icon' : 'fa fa-folder'
},
'file' : {
'icon' : 'fa fa-file'
}
},
'plugins': ['types']
});
/*
Drag & Drop
*/
$('#treeDragDrop').jstree({
'core' : {
'check_callback' : true,
'themes' : {
'responsive': false
}
},
'types' : {
'default' : {
'icon' : 'fa fa-folder'
},
'file' : {
'icon' : 'fa fa-file'
}
},
'plugins': ['types', 'dnd']
});
}).apply( this, [ jQuery ]);