projects
/
roojs1
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
cc0f332
)
Roo/bootstrap/Button.js
author
benny
<benny@roojs.com>
Fri, 20 Jul 2018 07:11:53 +0000
(15:11 +0800)
committer
benny
<benny@roojs.com>
Fri, 20 Jul 2018 07:11:53 +0000
(15:11 +0800)
Roo/bootstrap/Button.js
patch
|
blob
|
history
diff --git
a/Roo/bootstrap/Button.js
b/Roo/bootstrap/Button.js
index
1f1ae0a
..
8096728
100644
(file)
--- a/
Roo/bootstrap/Button.js
+++ b/
Roo/bootstrap/Button.js
@@
-359,10
+359,16
@@
Roo.extend(Roo.bootstrap.Button, Roo.bootstrap.Component, {
{
return this.el.hasClass('active');
},
+ /**
+ * set the text of the first selected button
+ */
setText : function(str)
{
this.el.select('.roo-button-text',true).first().dom.innerHTML = str;
},
+ /**
+ * get the text of the first selected button
+ */
getText : function()
{
return this.el.select('.roo-button-text',true).first().dom.innerHTML;