public/javascripts/yui/treeview/treeview-debug.js
function() {
        // this.logger.log("No children, " + " isDyanmic: " + this.isDynamic() + " expanded: " + this.expanded);
        if (this.isLoading) {
            this.logger.log("returning the loading icon");
            return "ygtvloading";
        } else {
            // location top or bottom, middle nodes also get the top style
            var loc = (this.nextSibling) ? "t" : "l";

            // type p=plus(expand), m=minus(collapase), n=none(no children)
            var type = "n";
            if (this.hasChildren(true) || (this.isDynamic() && !this.getIconMode())) {
            // if (this.hasChildren(true)) {
                type = (this.expanded) ? "m" : "p";
            }

            // this.logger.log("ygtv" + loc + type);
            return "ygtv" + loc + type;
        }
    }
function() {
        // this.logger.log("No children, " + " isDyanmic: " + this.isDynamic() + " expanded: " + this.expanded);
        if (this.isLoading) {
            this.logger.log("returning the loading icon");
            return "ygtvloading";
        } else {
            // location top or bottom, middle nodes also get the top style
            var loc = (this.nextSibling) ? "t" : "l";

            // type p=plus(expand), m=minus(collapase), n=none(no children)
            var type = "n";
            if (this.hasChildren(true) || (this.isDynamic() && !this.getIconMode())) {
            // if (this.hasChildren(true)) {
                type = (this.expanded) ? "m" : "p";
            }

            // this.logger.log("ygtv" + loc + type);
            return "ygtv" + loc + type;
        }
    }
function ( ) { // this.logger.log("No children, " + " isDyanmic: " + this.isDynamic() + " expanded: " + this.expanded); if ( this . isLoading ) { this . logger . log ( "returning the loading icon" ) ; return "ygtvloading" ; } else { // location top or bottom, middle nodes also get the top style var loc = ( this . nextSibling ) ? "t" : "l" ; // type p=plus(expand), m=minus(collapase), n=none(no children) var type = "n" ; if ( this . hasChildren ( true ) || ( this . isDynamic ( ) && ! this . getIconMode ( ) ) ) { // if (this.hasChildren(true)) { type = ( this . expanded ) ? "m" : "p" ; } // this.logger.log("ygtv" + loc + type); return "ygtv" + loc + type ; } }
Returns the css style name for the toggle
@method getStyle
@return {string} the css class for this node's toggle
Returns the css style name for the toggle