dist/jquery.fancytree-all-deps.js
function(span, baseClass, icon) {
				var $span = $(span);

				if (typeof icon === "string") {
					$span.attr("class", baseClass + " " + icon);
				} else {
					// support object syntax: { text: ligature, addClasse: classname }
					if (icon.text) {
						$span.text("" + icon.text);
					} else if (icon.html) {
						span.innerHTML = icon.html;
					}
					$span.attr(
						"class",
						baseClass + " " + (icon.addClass || "")
					);
				}
			}
function(span, baseClass, icon) {
				var $span = $(span);

				if (typeof icon === "string") {
					$span.attr("class", baseClass + " " + icon);
				} else {
					// support object syntax: { text: ligature, addClasse: classname }
					if (icon.text) {
						$span.text("" + icon.text);
					} else if (icon.html) {
						span.innerHTML = icon.html;
					}
					$span.attr(
						"class",
						baseClass + " " + (icon.addClass || "")
					);
				}
			}
function ( span , baseClass , icon ) { var $span = $ ( span ) ; if ( typeof icon === "string" ) { $span . attr ( "class" , baseClass + " " + icon ) ; } else { // support object syntax: { text: ligature, addClasse: classname } if ( icon . text ) { $span . text ( "" + icon . text ) ; } else if ( icon . html ) { span . innerHTML = icon . html ; } $span . attr ( "class" , baseClass + " " + ( icon . addClass || "" ) ) ; } }
Set expander, checkbox, or node icon, supporting string and object format.

@param {Element | jQueryObject} span
@param {string} baseClass
@param {string | object} icon
@since 2.27
Set expander checkbox or node icon supporting string and object format .