html: false,
active: false,
weight: '',
+ outline : false,
size: '',
tag: 'button',
href: '',
]
};
- if (['default', 'primary', 'success', 'info', 'warning', 'danger', 'link'].indexOf(this.weight) > -1) {
+ if (['default', 'secondary' , 'primary', 'success', 'info', 'warning', 'danger', 'link'].indexOf(this.weight) > -1) {
cfg.cls += ' '+this.weight;
}
//}
if (['default', 'primary', 'success', 'info', 'warning', 'danger', 'link'].indexOf(this.weight) > -1) {
- cfg.cls += ' btn-' + this.weight;
+ var outline = this.outline || this.weight == 'default' ? 'outline-' : '';
+ cfg.cls += ' btn-' + outline + this.weight;
}
} else if (this.theme==='glow') {
setWeight : function(str)
{
- var outline = this.outline ? 'outline-' : ''
+ this.weight = str;
+ var outline = this.outline ? 'outline-' : '';
+ if (str == 'default') {
+ outline = 'outline-';
+ str = 'secondary';
+ }
this.el.removeClass(this.weightClass);
this.el.addClass('btn-' + outline + str);
}