/** Treeview. A wrapper for FuelUX treeview element. It's just a wrapper so you still need to include FuelUX treeview script first. */ (function($ , undefined) { $.fn.aceTree = $.fn.ace_tree = function(options) { var $defaults = { 'open-icon' : ace.vars['icon'] + 'fa fa-folder-open', 'close-icon' : ace.vars['icon'] + 'fa fa-folder', 'toggle-icon': ace.vars['icon'] + 'fa fa-play', 'selected-icon' : ace.vars['icon'] + 'fa fa-check', 'unselected-icon' : ace.vars['icon'] + 'fa fa-times', 'base-icon' : ace.vars['icon'] + 'fa', 'folder-open-icon' : 'fa fa-plus-square-o', 'folder-close-icon' : 'fa fa-plus-minus-o', 'loadingHTML': 'Loading...' } this.each(function() { var attrib_values = ace.helper.getAttrSettings(this, $defaults); var $options = $.extend({}, $defaults, options, attrib_values); var $this = $(this); $this.addClass('tree').attr('role', 'tree'); $this.html( '\
  • \ \ '+($options['unselected-icon'] == null ? '' : '')+'\ \ \
  • '); $this.addClass($options['selectable'] == true ? 'tree-selectable' : 'tree-unselectable'); $this.tree($options); }); return this; } })(window.jQuery);