projects
/
roojs1
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
654b449
)
Roo/bootstrap/Button.js
author
benny
<benny@roojs.com>
Fri, 20 Jul 2018 07:51:13 +0000
(15:51 +0800)
committer
benny
<benny@roojs.com>
Fri, 20 Jul 2018 07:51:13 +0000
(15:51 +0800)
Roo/bootstrap/Button.js
patch
|
blob
|
history
diff --git
a/Roo/bootstrap/Button.js
b/Roo/bootstrap/Button.js
index
30c833a
..
b9f0a00
100644
(file)
--- a/
Roo/bootstrap/Button.js
+++ b/
Roo/bootstrap/Button.js
@@
-21,6
+21,7
@@
* @cfg {String} theme default
* @cfg {Boolean} inverse
* @cfg {Boolean} toggle is it a slidy toggle button
* @cfg {String} theme default
* @cfg {Boolean} inverse
* @cfg {Boolean} toggle is it a slidy toggle button
+ * @cfg {Boolean} pressed (true|false) default null - if the button ahs active state
* @cfg {String} ontext text for on toggle state
* @cfg {String} offtext text for off toggle state
* @cfg {Boolean} defaulton
* @cfg {String} ontext text for on toggle state
* @cfg {String} offtext text for off toggle state
* @cfg {Boolean} defaulton
@@
-384,7
+385,7
@@
Roo.extend(Roo.bootstrap.Button, Roo.bootstrap.Component, {
},
setWeight : function(str)
{
},
setWeight : function(str)
{
-
this.el.removeClass(this.weightClass);
+ this.el.removeClass(this.weightClass);
this.el.addClass('btn-' + str);
}
this.el.addClass('btn-' + str);
}