src/aria/widgets/TemplateBasedWidget.js
function (tplCfg) {
            if (this._cfgOk) {
                var cfg = this._cfg;

                for (var i = 0, len = this.__inherithCfg.length; i < len; i += 1) {
                    var property = this.__inherithCfg[i];
                    if (!tplCfg.hasOwnProperty(property)) {
                        tplCfg[property] = cfg[property];
                    }
                }

                if (cfg.defaultTemplate) {
                    // allow the customization of the template:
                    tplCfg.defaultTemplate = cfg.defaultTemplate;
                }
                if (cfg.id) {
                    tplCfg.id = cfg.id + "_t_";
                }
                var tplWidget = this._tplWidget = new ariaWidgetsTemplate(tplCfg, this._context, this._lineNumber);
                var extraAttributes = this._extraAttributes;
                if (extraAttributes) {
                    tplWidget.addExtraAttributes(extraAttributes);
                }

                tplWidget.tplLoadCallback = {
                    fn : this._tplLoadCallback,
                    scope : this
                };
            }
        }
function (tplCfg) {
            if (this._cfgOk) {
                var cfg = this._cfg;

                for (var i = 0, len = this.__inherithCfg.length; i < len; i += 1) {
                    var property = this.__inherithCfg[i];
                    if (!tplCfg.hasOwnProperty(property)) {
                        tplCfg[property] = cfg[property];
                    }
                }

                if (cfg.defaultTemplate) {
                    // allow the customization of the template:
                    tplCfg.defaultTemplate = cfg.defaultTemplate;
                }
                if (cfg.id) {
                    tplCfg.id = cfg.id + "_t_";
                }
                var tplWidget = this._tplWidget = new ariaWidgetsTemplate(tplCfg, this._context, this._lineNumber);
                var extraAttributes = this._extraAttributes;
                if (extraAttributes) {
                    tplWidget.addExtraAttributes(extraAttributes);
                }

                tplWidget.tplLoadCallback = {
                    fn : this._tplLoadCallback,
                    scope : this
                };
            }
        }
function ( tplCfg ) { if ( this . _cfgOk ) { var cfg = this . _cfg ; for ( var i = 0 , len = this . __inherithCfg . length ; i < len ; i += 1 ) { var property = this . __inherithCfg [ i ] ; if ( ! tplCfg . hasOwnProperty ( property ) ) { tplCfg [ property ] = cfg [ property ] ; } } if ( cfg . defaultTemplate ) { // allow the customization of the template: tplCfg . defaultTemplate = cfg . defaultTemplate ; } if ( cfg . id ) { tplCfg . id = cfg . id + "_t_" ; } var tplWidget = this . _tplWidget = new ariaWidgetsTemplate ( tplCfg , this . _context , this . _lineNumber ) ; var extraAttributes = this . _extraAttributes ; if ( extraAttributes ) { tplWidget . addExtraAttributes ( extraAttributes ) ; } tplWidget . tplLoadCallback = { fn : this . _tplLoadCallback , scope : this } ; } }
Initialize the template associated to this template based widget. It will create a new instance of the
Template.
@param {aria.templates.CfgBeans:LoadTemplateCfg} tplCfg Template configuration object
@protected
Initialize the template associated to this template based widget . It will create a new instance of the Template .