All Downloads are FREE. Search and download functionalities are using the official Maven repository.

public.component.assets.js.ace.elements.treeview.js Maven / Gradle / Ivy

There is a newer version: 3.0.1.11
Show newest version
/**
 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 $options = {
			'open-icon' : ace.vars['icon'] + 'fa fa-folder-open',
			'close-icon' : ace.vars['icon'] + 'fa fa-folder',
			'selectable' : true,
			'selected-icon' : ace.vars['icon'] + 'fa fa-check',
			'unselected-icon' : ace.vars['icon'] + 'fa fa-times',
			'loadingHTML': 'Loading...'
		}
	
		$options = $.extend({}, $options, options)
		this.each(function() {
			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);




    © 2015 - 2025 Weber Informatics LLC | Privacy Policy