cmmit
authorbenny <benny@roojs.com>
Fri, 20 Jul 2018 07:06:36 +0000 (15:06 +0800)
committerbenny <benny@roojs.com>
Fri, 20 Jul 2018 07:06:36 +0000 (15:06 +0800)
Roo/bootstrap/Button.js
css/button.css

index 2010b97..17695db 100644 (file)
@@ -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;
index 6160d36..d944cb8 100644 (file)
 
 }
 
-.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
 {