projects
/
roojs1
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
e8f9960
)
cmmit
author
benny
<benny@roojs.com>
Fri, 20 Jul 2018 07:06:36 +0000
(15:06 +0800)
committer
benny
<benny@roojs.com>
Fri, 20 Jul 2018 07:06:36 +0000
(15:06 +0800)
Roo/bootstrap/Button.js
patch
|
blob
|
history
css/button.css
patch
|
blob
|
history
diff --git
a/Roo/bootstrap/Button.js
b/Roo/bootstrap/Button.js
index
2010b97
..
17695db
100644
(file)
--- a/
Roo/bootstrap/Button.js
+++ b/
Roo/bootstrap/Button.js
@@
-351,6
+351,15
@@
Roo.extend(Roo.bootstrap.Button, Roo.bootstrap.Component, {
},
},
+ /**
+ * get the current active state
+ * @return {boolean} true if it's active
+ */
+ isActive : function()
+ {
+ return this.el.hasClass('active');
+ },
+ }
setText : function(str)
{
this.el.select('.roo-button-text',true).first().dom.innerHTML = str;
setText : function(str)
{
this.el.select('.roo-button-text',true).first().dom.innerHTML = str;
diff --git
a/css/button.css
b/css/button.css
index
6160d36
..
d944cb8
100644
(file)
--- a/
css/button.css
+++ b/
css/button.css
@@
-167,13
+167,7
@@
}
}
-.x-btn-text-icon .x-btn-center .x-btn-text-no-padding
-{
- background-position:0 2px;
- background:none no-repeat scroll 0 0 transparent;
- /* padding : 3px 0 2px 18px; */
-}
/* -------------------------- BUTTON WITH MENUS -------------------------- */
button.x-btn-menu-arrow-el
{
/* -------------------------- BUTTON WITH MENUS -------------------------- */
button.x-btn-menu-arrow-el
{