cfg.cls += ' active';
}
+ cfg.cls += this.size.length ? (' btn-' + this.size) : '';
+
+ //gsRoo.log(this.parentType);
+ if (this.parentType === 'Navbar') {
+ cfg.tag = 'li';
+
+ cfg.cls = '';
+ cfg.cn = [{
+ tag : 'a',
+ cls : 'roo-button',
+ html : this.html,
+ href : this.href || '#'
+ }];
+ if (this.menu) {
+ cfg.cn[0].html = this.html + ' <span class="caret"></span>';
+ cfg.cls += ' dropdown';
+ }
+
+ delete cfg.html;
+
+ }
+ else if (this.menu) {
+ cfg.cls += ' dropdown';
+ cfg.html = this.html + ' <span class="caret"></span>';
+ }
+
if (this.disabled) {
cfg.disabled = 'disabled';
}
cfg.html='';
}
- cfg.cls += this.size.length ? (' btn-' + this.size) : '';
-
- //gsRoo.log(this.parentType);
- if (this.parentType === 'Navbar') {
- cfg.tag = 'li';
-
- cfg.cls = '';
- cfg.cn = [{
- tag : 'a',
- cls : 'roo-button',
- html : this.html,
- href : this.href || '#'
- }];
- if (this.menu) {
- cfg.cn[0].html = this.html + ' <span class="caret"></span>';
- cfg.cls += ' dropdown';
- }
-
- delete cfg.html;
-
- }
- else 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) {