cfg.disabled = 'disabled';
}
+ if (this.items) {
+ Roo.log('changing to ul' );
+ cfg.tag = 'ul';
+ this.glyphicon = 'caret';
+ }
+
cfg.cls += this.size.length ? (' btn-' + this.size) : '';
//gsRoo.log(this.parentType);
delete cfg.html;
}
- else if (this.menu) {
- cfg.cls += ' dropdown';
- cfg.html = this.html + ' <span class="caret"></span>';
- }
if (this.glyphicon) {
cfg.html = ' ' + cfg.html;
cfg.html='';
}
+ if (this.menu) {
+ cfg.cls += ' dropdown';
+ cfg.html = this.html + ' <span class="caret"></span>';
+ }
+
if (cfg.tag !== 'a' && this.href !== '') {
throw "Tag must be a to set href.";
} else if (this.href.length > 0) {