cfg.cls += ' active';
}
+ // fixme - this should handle glyphicon or ico
+ if (this.glyphicon || this.icon) {
+ var c = this.glyphicon ? ('glyphicon glyphicon-'+this.glyphicon) : this.icon;
+ cfg.cn[0].html = '<i class="' +c+'"></i>'
+ }
cfg.cn[0].html += '<span class="glyphicon glyphicon-chevron-down"></span>';
}
- // fixme - this should handle glyphicon or ico
- if (this.glyphicon || this.icon) {
- var c = this.glyphicon ? ('glyphicon glyphicon-'+this.glyphicon) : this.icon;
- cfg.cn[0].html = '<i class="' +c+'"></i><span>' + cfg.cn[0].html + '</span>'
- }
return cfg;