* @extends Roo.bootstrap.Component
* Bootstrap Button class
* @cfg {String} html The button content
- * @cfg {String} weight (default | primary | secondary | success | info | warning | danger | link ) default
+ * @cfg {String} weight (default | primary | secondary | success | info | warning | danger | link ) default
+ * @cfg {Boolean} outline default false (except for weight=default which emulates old behaveiour with an outline)
* @cfg {String} size ( lg | sm | xs)
* @cfg {String} tag ( a | input | submit)
* @cfg {String} href empty or href
html: false,
active: false,
weight: '',
+ outline : false,
size: '',
tag: 'button',
href: '',
setWeight : function(str)
{
- this.el.removeClass(this.weightClass);
- this.el.addClass('btn-' + str);
+ var outline = this.outline ? 'outline-' : ''
+ this.el.removeClass(this.weightClass);
+ this.el.addClass('btn-' + outline + str);
}