You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
|
|
/** * Theme: Uplon Admin Template * Author: Coderthemes * Tree view */
$( document ).ready(function() { // Basic
$('#basicTree').jstree({ 'core' : { 'themes' : { 'responsive': false } }, 'types' : { 'default' : { 'icon' : 'icofont icofont-folder' }, 'file' : { 'icon' : 'icofont icofont-file-alt' } }, 'plugins' : ['types'] }); // Checkbox
$('#checkTree').jstree({ 'core' : { 'themes' : { 'responsive': false } }, 'types' : { 'default' : { 'icon' : 'icofont icofont-folder' }, 'file' : { 'icon' : 'icofont icofont-file-alt' } }, 'plugins' : ['types', 'checkbox'] }); // Drag & Drop
$('#dragTree').jstree({ 'core' : { 'check_callback' : true, 'themes' : { 'responsive': false } }, 'types' : { 'default' : { 'icon' : 'icofont icofont-folder' }, 'file' : { 'icon' : 'icofont icofont-file-alt' } }, 'plugins' : ['types', 'dnd'] }); // Ajax
$('#ajaxTree').jstree({ 'core' : { 'check_callback' : true, 'themes' : { 'responsive': false }, 'data' : { 'url' : function (node) { return node.id === '#' ? 'assets/plugins/jstree/ajax_roots.json' : 'assets/plugins/jstree/ajax_children.json'; }, 'data' : function (node) { return { 'id' : node.id }; } } }, "types" : { 'default' : { 'icon' : 'icofont icofont-folder' }, 'file' : { 'icon' : 'icofont icofont-file-alt' } }, "plugins" : [ "contextmenu", "dnd", "search", "state", "types", "wholerow" ] });});
|