This commit is contained in:
Liam DeBeasi
2024-02-09 09:23:16 -05:00
parent 1ca9aa5246
commit 26be0680d5
2 changed files with 7 additions and 1 deletions

View File

@@ -1290,6 +1290,7 @@ export namespace Components {
* Works with the min and max attributes to limit the increments at which a value can be set. Possible values are: `"any"` or a positive floating point number.
*/
"step"?: string;
"togglePassword": boolean;
/**
* The type of control to display. The default type is text.
*/
@@ -6021,6 +6022,7 @@ declare namespace LocalJSX {
* Works with the min and max attributes to limit the increments at which a value can be set. Possible values are: `"any"` or a positive floating point number.
*/
"step"?: string;
"togglePassword"?: boolean;
/**
* The type of control to display. The default type is text.
*/

View File

@@ -153,6 +153,8 @@ export class Input implements ComponentInterface {
this.emitStyle();
}
@Prop() togglePassword = false;
/**
* A hint to the browser for which enter key to display.
* Possible values: `"enter"`, `"done"`, `"go"`, `"next"`,
@@ -836,7 +838,9 @@ export class Input implements ComponentInterface {
<ion-icon aria-hidden="true" icon={mode === 'ios' ? closeCircle : closeSharp}></ion-icon>
</button>
)}
<slot name="end"></slot>
<slot name="end">
{ this.togglePassword && <button>Hello World</button> }
</slot>
</div>
{shouldRenderHighlight && <div class="input-highlight"></div>}
</label>