- if(this.dataId){
- cfg.dataId = this.dataId;
- }
-
- if (this.cls) {
- cfg.cls = (typeof(cfg.cls) == 'undefined' ? this.cls : cfg.cls) + ' ' + this.cls;
- }
-
- if (this.style) { // fixme needs to support more complex style data.
- cfg.style = (typeof(cfg.style) == 'undefined' ? this.style : cfg.style) + '; ' + this.style;
- }
-
- if(this.name){
- cfg.name = this.name;
- }
-
- this.el = ct.createChild(cfg, position);
-
- if (this.tooltip) {
- this.tooltipEl().attr('tooltip', this.tooltip);
- }
-
- if(this.tabIndex !== undefined){
- this.el.dom.setAttribute('tabIndex', this.tabIndex);
- }
-
- this.initEvents();
-