cmmit
[roojs1] / Roo / bootstrap / Button.js
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;