Roo/form/Checkbox.js
authoredward <edward@roojs.com>
Mon, 18 Jul 2016 06:06:01 +0000 (14:06 +0800)
committeredward <edward@roojs.com>
Mon, 18 Jul 2016 06:06:01 +0000 (14:06 +0800)
Roo/form/Checkbox.js

index 85903b8..7093fdd 100644 (file)
@@ -212,6 +212,11 @@ Roo.extend(Roo.form.Checkbox, Roo.form.Field,  {
         }
          
         Roo.form.Checkbox.superclass.onDestroy.call(this);
+    },
+    
+    setBoxLabel : function(str)
+    {
+        this.wrap.select('.x-form-cb-label', true).first().dom.innerHTML = str;
     }
 
 });
\ No newline at end of file