Roo/bootstrap/Button.js
authorAlan Knowles <alan@roojs.com>
Tue, 22 Jul 2014 09:49:34 +0000 (17:49 +0800)
committerAlan Knowles <alan@roojs.com>
Tue, 22 Jul 2014 09:49:34 +0000 (17:49 +0800)
Roo/bootstrap/Button.js

index 5fce250..4fa7eb7 100644 (file)
@@ -95,7 +95,7 @@ Roo.extend(Roo.bootstrap.Button, Roo.bootstrap.Component,  {
         } else {
             cfg.tag = this.tag;
         }
-        cfg.html = this.html || cfg.html;
+        cfg.html = '<span class="roo-button-text">' + (this.html || cfg.html) + '</span>';
         
         if (this.toggle == true) {
             cfg={
@@ -327,6 +327,10 @@ Roo.extend(Roo.bootstrap.Button, Roo.bootstrap.Component,  {
        this.setActive(!active);
        
         
+    },
+    setText : function(str)
+    {
+        
     }