Roo/bootstrap/Input.js
authorjohn <john@roojs.com>
Wed, 21 Mar 2018 04:58:28 +0000 (12:58 +0800)
committerjohn <john@roojs.com>
Wed, 21 Mar 2018 04:58:28 +0000 (12:58 +0800)
Roo/bootstrap/Input.js

index 16fc8ad..0a34aad 100644 (file)
@@ -1008,6 +1008,15 @@ Roo.extend(Roo.bootstrap.Input, Roo.bootstrap.Component,  {
         return w;
     }
     
+    setFieldLabel : function(v)
+    {
+        this.fieldLabel = v;
+        
+        if(this.rendered){
+            this.el.select('label',true).first().dom.innerHTML = (v === null || v === undefined ? '' : v);
+        }
+    }
+    
 });