sc-input

Usage

Input

<label for="email">Email</label>
<sc-input type="email" required name="email" id="email"></sc-input>

<label for="password">Password</label>
<sc-input type="password" required name="password" maxlength="6" id="password">
</sc-input>

Properties

Events

Methods

getInputElement() => Promise<HTMLInputElement>

Returns the native <input> element used under the hood.

Returns

Type: Promise<HTMLInputElement>

setFocus() => Promise<void>

Sets focus on the specified ion-input. Use this method instead of the global input.focus().

Returns

Type: Promise<void>

Inspired by Ionic, built with StencilJS ❤ from Sean Wu

Last updated