feat(input): add support for enterkeyhint (#21035)

fixes #21034
This commit is contained in:
Liam DeBeasi
2020-04-15 15:08:12 -04:00
committed by GitHub
parent 102a842bd2
commit 3efaf43821
6 changed files with 21 additions and 3 deletions

View File

@ -95,6 +95,13 @@ export class Input implements ComponentInterface {
*/
@Prop() inputmode?: 'none' | 'text' | 'tel' | 'url' | 'email' | 'numeric' | 'decimal' | 'search';
/**
* A hint to the browser for which enter key to display.
* Possible values: `"enter"`, `"done"`, `"go"`, `"next"`,
* `"previous"`, `"search"`, and `"send"`.
*/
@Prop() enterkeyhint?: 'enter' | 'done' | 'go' | 'next' | 'previous' | 'search' | 'send';
/**
* The maximum value, which must not be less than its minimum (min attribute) value.
*/
@ -362,6 +369,7 @@ export class Input implements ComponentInterface {
autoComplete={this.autocomplete}
autoCorrect={this.autocorrect}
autoFocus={this.autofocus}
enterKeyHint={this.enterkeyhint}
inputMode={this.inputmode}
min={this.min}
max={this.max}