html: 'Text'
}
];
+
+ if (this.glyphicon) {
+ if(cfg.html){cfg.html = ' ' + this.html};
+ cfg.cn=[
+ {
+ tag: 'span',
+ cls: 'glyphicon glyphicon-' + this.glyphicon
+ }
+ ];
+ }
cfg.cn[0].html = this.html || cfg.cn[0].html ;
if (this.menu) {
cfg.cn[0].href=this.href||'#';
cfg.cn[0].html=this.html;
}
-
- if (this.glyphicon) {
- if(cfg.html){cfg.html = ' ' + this.html};
- cfg.cn=[
- {
- tag: 'span',
- cls: 'glyphicon glyphicon-' + this.glyphicon
- }
- ];
- }
if (this.badge !== '') {