D7net
Home
Console
Upload
information
Create File
Create Folder
About
Tools
:
/
home
/
vitalityhealth
/
www
/
s
/
js
/
examples
/
Filename :
examples.treeview.js
back
Copy
(function($){'use strict';$('#treeBasic').jstree({'core':{'themes':{'responsive':false}},'types':{'default':{'icon':'fas fa-folder'},'file':{'icon':'fas fa-file'}},'plugins':['types']});$('#treeCheckbox').jstree({'core':{'themes':{'responsive':false}},'types':{'default':{'icon':'fas fa-folder'},'file':{'icon':'fas fa-file'}},'plugins':['types','checkbox']});$('#treeAjaxHTML').jstree({'core':{'themes':{'responsive':false},'check_callback':true,'data':{'url':function(node){return 'ajax/ajax-treeview-nodes.html';},'data':function(node){return{'parent':node.id};}}},'types':{'default':{'icon':'fas fa-folder'},'file':{'icon':'fas fa-file'}},'plugins':['types']});$('#treeAjaxJSON').jstree({'core':{'themes':{'responsive':false},'check_callback':true,'data':{'url':function(node){return node.id==='#'?'ajax/ajax-treeview-roots.json':'ajax/ajax-treeview-children.json';},'data':function(node){return{'id':node.id};}}},'types':{'default':{'icon':'fas fa-folder'},'file':{'icon':'fas fa-file'}},'plugins':['types']});$('#treeDragDrop').jstree({'core':{'check_callback':true,'themes':{'responsive':false}},'types':{'default':{'icon':'fas fa-folder'},'file':{'icon':'fas fa-file'}},'plugins':['types','dnd']});}).apply(this,[jQuery]);