src/aria/templates/TemplateCtxt.js
function (onlyCSSDep) {
            var classes = this._cssClasses;
            if (!classes) {
                if (this._cfg.isRootTemplate) {
                    // PTR 05086835: load the global CSS here, and remember that it was loaded
                    var deps = ['aria.templates.GlobalStyle'];
                    if (aria.widgets && aria.widgets.AriaSkin) {
                        deps.push('aria.templates.LegacyGeneralStyle');
                    }
                    ariaTemplatesCSSMgr.loadWidgetDependencies('aria.templates.Template', deps);
                    this._globalCssDepsLoaded = true;
                }
                // Load the CSS dependencies, the style should be added before the html
                classes = ariaTemplatesCSSMgr.loadDependencies(this);
                this._cssClasses = classes; // save classes for later calls
            }
            if (onlyCSSDep) {
                return classes.join(" ");
            }
            var classNames = ["xTplContent"];
            // Add also the classes used by the CSS manager to scope a dependency
            if (classes.length) {
                classNames = classNames.concat(classes);
            }
            return ariaCoreTplClassLoader.addPrintOptions(classNames.join(" "), this._cfg.printOptions);
        }
function (onlyCSSDep) {
            var classes = this._cssClasses;
            if (!classes) {
                if (this._cfg.isRootTemplate) {
                    // PTR 05086835: load the global CSS here, and remember that it was loaded
                    var deps = ['aria.templates.GlobalStyle'];
                    if (aria.widgets && aria.widgets.AriaSkin) {
                        deps.push('aria.templates.LegacyGeneralStyle');
                    }
                    ariaTemplatesCSSMgr.loadWidgetDependencies('aria.templates.Template', deps);
                    this._globalCssDepsLoaded = true;
                }
                // Load the CSS dependencies, the style should be added before the html
                classes = ariaTemplatesCSSMgr.loadDependencies(this);
                this._cssClasses = classes; // save classes for later calls
            }
            if (onlyCSSDep) {
                return classes.join(" ");
            }
            var classNames = ["xTplContent"];
            // Add also the classes used by the CSS manager to scope a dependency
            if (classes.length) {
                classNames = classNames.concat(classes);
            }
            return ariaCoreTplClassLoader.addPrintOptions(classNames.join(" "), this._cfg.printOptions);
        }
function ( onlyCSSDep ) { var classes = this . _cssClasses ; if ( ! classes ) { if ( this . _cfg . isRootTemplate ) { // PTR 05086835: load the global CSS here, and remember that it was loaded var deps = [ 'aria.templates.GlobalStyle' ] ; if ( aria . widgets && aria . widgets . AriaSkin ) { deps . push ( 'aria.templates.LegacyGeneralStyle' ) ; } ariaTemplatesCSSMgr . loadWidgetDependencies ( 'aria.templates.Template' , deps ) ; this . _globalCssDepsLoaded = true ; } // Load the CSS dependencies, the style should be added before the html classes = ariaTemplatesCSSMgr . loadDependencies ( this ) ; this . _cssClasses = classes ; // save classes for later calls } if ( onlyCSSDep ) { return classes . join ( " " ) ; } var classNames = [ "xTplContent" ] ; // Add also the classes used by the CSS manager to scope a dependency if ( classes . length ) { classNames = classNames . concat ( classes ) ; } return ariaCoreTplClassLoader . addPrintOptions ( classNames . join ( " " ) , this . _cfg . printOptions ) ; }
Get the list of CSS classnames that should be added to the Template container DOM element
@param {Boolean} onlyCSSDep if true, only include CSS class names corresponding to CSS template
dependencies.
@return {String}
Get the list of CSS classnames that should be added to the Template container DOM element