Compare commits

...

1 Commits

Author SHA1 Message Date
Liam DeBeasi
26be0680d5 Add poc 2024-02-09 09:23:16 -05:00
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. * 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; "step"?: string;
"togglePassword": boolean;
/** /**
* The type of control to display. The default type is text. * 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. * 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; "step"?: string;
"togglePassword"?: boolean;
/** /**
* The type of control to display. The default type is text. * The type of control to display. The default type is text.
*/ */

View File

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