cfg.cls += ' active';
}
+ if (this.disabled) {
+ cfg.disabled = 'disabled';
+ }
+ //????
+ if (this.items) {
+ Roo.log('changing to ul' );
+ cfg.tag = 'ul';
+ this.glyphicon = 'caret';
+ }
+
+ if (this.glyphicon) {
+ cfg.html = ' ' + cfg.html;
+
+ cfg.cn = [
+ {
+ tag: 'span',
+ cls: 'glyphicon glyphicon-' + this.glyphicon
+ }
+ ];
+ }
+
+ if (this.badge) {
+ cfg.html += ' ';
+
+ cfg.tag = 'a';
+
+// cfg.cls='btn roo-button';
+
+ cfg.href=this.href;
+
+ var value = cfg.html;
+
+ if(this.glyphicon){
+ value = {
+ tag: 'span',
+ cls: 'glyphicon glyphicon-' + this.glyphicon,
+ html: this.html
+ };
+
+ }
+
+ cfg.cn = [
+ value,
+ {
+ tag: 'span',
+ cls: 'badge',
+ html: this.badge
+ }
+ ];
+
+ cfg.html='';
+ }
+
cfg.cls += this.size.length ? (' btn-' + this.size) : '';
//gsRoo.log(this.parentType);