Roo/bootstrap/form/Password.js
authorleon <leon@roojs.com>
Mon, 15 May 2023 05:07:53 +0000 (13:07 +0800)
committerleon <leon@roojs.com>
Mon, 15 May 2023 05:07:53 +0000 (13:07 +0800)
Roo/bootstrap/form/Password.js

index 971419f..4bd5b00 100644 (file)
@@ -37,6 +37,12 @@ Roo.extend(Roo.bootstrap.form.Password, Roo.bootstrap.form.Input, {
         this.wrap = this.inputEl().wrap({
             cls : 'password-wrap'
         });
+
+        this.toggle = this.wrap.createChild({
+            xns : Roo.bootstrap,
+            xtype : 'Button',
+            cls : 'password-toggle'
+        });
     },
 
     initEvents : function()