X-Git-Url: http://git.roojs.org/?p=roojs1;a=blobdiff_plain;f=docs%2Fsrc%2FRoo_bootstrap_Button.js.html;fp=docs%2Fsrc%2FRoo_bootstrap_Button.js.html;h=36ce09ff8d97b8eb6b75a1872b10e953f8f709e6;hp=746ac682c693c1b880dabcf177102fcd5eda97a9;hb=fb48a50ed75f56440203852cd015ab3b24c2df5d;hpb=207266a952895d8d8886301ef073432e320290d0
diff --git a/docs/src/Roo_bootstrap_Button.js.html b/docs/src/Roo_bootstrap_Button.js.html
index 746ac682c6..36ce09ff8d 100644
--- a/docs/src/Roo_bootstrap_Button.js.html
+++ b/docs/src/Roo_bootstrap_Button.js.html
@@ -10,8 +10,8 @@
* @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} badge_weight (default|primary|secondary|success|info|warning|danger|link ) default (same as button)
+ * @cfg {String} weight (default|primary|secondary|success|info|warning|danger|link|light|dark) default
+ * @cfg {String} badge_weight (default|primary|secondary|success|info|warning|danger|link|light|dark) default (same as button)
* @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)
@@ -39,14 +39,7 @@
Roo.bootstrap.Button = function(config){
Roo.bootstrap.Button.superclass.constructor.call(this, config);
- this.weightClass = ["btn-default btn-outline-secondary",
- "btn-primary",
- "btn-success",
- "btn-info",
- "btn-warning",
- "btn-danger",
- "btn-link"
- ],
+
this.addEvents({
setWeight : function(str)
{
- this.el.removeClass(this.weightClass);
+ this.el.removeClass(Roo.bootstrap.Button.weightClass );
this.weight = str;
var outline = this.outline ? 'outline-' : '';
if (str == 'default') {
@@ -422,5 +415,17 @@
});
-
-