definicao de layout
This commit is contained in:
6
public/assets/js/tree/jstree.min.js
vendored
Normal file
6
public/assets/js/tree/jstree.min.js
vendored
Normal file
File diff suppressed because one or more lines are too long
72
public/assets/js/tree/tree.js
Normal file
72
public/assets/js/tree/tree.js
Normal file
@@ -0,0 +1,72 @@
|
||||
'use strict';
|
||||
var tree_custom = {
|
||||
init: function() {
|
||||
$('#treeBasic').jstree({
|
||||
'core' : {
|
||||
'themes' : {
|
||||
'responsive': false
|
||||
}
|
||||
},
|
||||
'types' : {
|
||||
'default' : {
|
||||
'icon' : 'icofont icofont-folder font-theme'
|
||||
},
|
||||
'file' : {
|
||||
'icon' : 'icofont icofont-file-alt font-dark'
|
||||
}
|
||||
},
|
||||
'plugins' : ['types']
|
||||
}), $('#treecheckbox').jstree({
|
||||
'core' : {
|
||||
'themes' : {
|
||||
'responsive': false
|
||||
}
|
||||
},
|
||||
'types' : {
|
||||
'default' : {
|
||||
'icon' : 'icofont icofont-folder font-theme'
|
||||
},
|
||||
'file' : {
|
||||
'icon' : 'icofont icofont-file-alt font-dark'
|
||||
}
|
||||
},
|
||||
'plugins' : ['types', 'checkbox']
|
||||
}), $('#dragTree').jstree({
|
||||
'core' : {
|
||||
'check_callback' : true,
|
||||
'themes' : {
|
||||
'responsive': false
|
||||
}
|
||||
},
|
||||
'types' : {
|
||||
'default' : {
|
||||
'icon' : 'icofont icofont-folder font-theme'
|
||||
},
|
||||
'file' : {
|
||||
'icon' : 'icofont icofont-file-alt font-dark'
|
||||
}
|
||||
},
|
||||
'plugins' : ['types', 'dnd']
|
||||
}), $('#contextmenu').jstree({
|
||||
'core' : {
|
||||
'check_callback' : true,
|
||||
'themes' : {
|
||||
'responsive': false
|
||||
}
|
||||
},
|
||||
'types' : {
|
||||
'default' : {
|
||||
'icon' : 'icofont icofont-folder font-theme'
|
||||
},
|
||||
'file' : {
|
||||
'icon' : 'icofont icofont-file-alt font-dark'
|
||||
}
|
||||
},
|
||||
"plugins" : [ "contextmenu", "state", "types" ]
|
||||
});
|
||||
}
|
||||
};
|
||||
(function($) {
|
||||
"use strict";
|
||||
tree_custom.init()
|
||||
})(jQuery);
|
||||
Reference in New Issue
Block a user