roojs-bootstrap.js
authorjohn <john@roojs.com>
Wed, 7 Mar 2018 04:06:38 +0000 (12:06 +0800)
committerjohn <john@roojs.com>
Wed, 7 Mar 2018 04:06:38 +0000 (12:06 +0800)
roojs-bootstrap-debug.js

roojs-bootstrap-debug.js
roojs-bootstrap.js

index 075a18f..2b1ed9d 100644 (file)
@@ -20772,6 +20772,15 @@ Roo.extend(Roo.bootstrap.Radio, Roo.bootstrap.Component, {
         
     }
     
+    setBoxLabel : function(v)
+    {
+        this.boxLabel = v;
+        
+        if(this.rendered){
+            this.el.select('label.box-label',true).dom.innerHTML = (v === null || v === undefined ? '' : v);
+        }
+    }
+    
 });
  
 
index 5b1837b..12bba58 100644 (file)
@@ -860,7 +860,8 @@ e.dom.disabled=false;});}this.disabled=false;this.fireEvent("enable",this);retur
 }this.groups[A.groupId][A.name]=A;},get:function(A){if(typeof(this.groups[A])=='undefined'){return false;}return this.groups[A];}});
 // Roo/bootstrap/Radio.js
 Roo.bootstrap.Radio=function(A){Roo.bootstrap.Radio.superclass.constructor.call(this,A);};Roo.extend(Roo.bootstrap.Radio,Roo.bootstrap.Component,{boxLabel:'',value:'',getAutoCreate:function(){var A={tag:'div',cls:'form-group radio',cn:[{tag:'label',cls:'box-label',html:this.boxLabel}
-]};return A;},initEvents:function(){this.parent().register(this);this.el.on('click',this.onClick,this);},onClick:function(){this.setChecked(true);},setChecked:function(A,B){this.parent().setValue(this.value,B);}});
+]};return A;},initEvents:function(){this.parent().register(this);this.el.on('click',this.onClick,this);},onClick:function(){this.setChecked(true);},setChecked:function(A,B){this.parent().setValue(this.value,B);}setBoxLabel:function(v){this.boxLabel=v;if(this.rendered){this.el.select('label.box-label',true).dom.innerHTML=(v===null||v===undefined?'':v);
+}}});
 // Roo/bootstrap/SecurePass.js
 Roo.bootstrap.SecurePass=function(A){this.errors={PwdEmpty:"Please type a password, and then retype it to confirm.",PwdShort:"Your password must be at least 6 characters long. Please type a different password.",PwdLong:"Your password can't contain more than 16 characters. Please type a different password.",PwdBadChar:"The password contains characters that aren't allowed. Please type a different password.",IDInPwd:"Your password can't include the part of your ID. Please type a different password.",FNInPwd:"Your password can't contain your first name. Please type a different password.",LNInPwd:"Your password can't contain your last name. Please type a different password.",TooWeak:"Your password is Too Weak."}
 ,this.meterLabel="Password strength:";this.pwdStrengths=["Too Weak","Weak","Medium","Strong"];this.meterClass=["roo-password-meter-tooweak","roo-password-meter-weak","roo-password-meter-medium","roo-password-meter-strong","roo-password-meter-grey"];this.errors={}