From b768181307fe723387d85301a56c4e7b6b2dabbd Mon Sep 17 00:00:00 2001 From: Amith Mihiranga <39789194+lwpamihiranga@users.noreply.github.com> Date: Wed, 16 Dec 2020 20:23:00 +0530 Subject: [PATCH] docs(input): add available autocapitalize property options (#21886) Co-authored-by: Brandy Carney --- core/src/components.d.ts | 4 ++-- core/src/components/input/input.tsx | 1 + core/src/components/input/readme.md | 2 +- 3 files changed, 4 insertions(+), 3 deletions(-) diff --git a/core/src/components.d.ts b/core/src/components.d.ts index d6c06fa6be..c1459603ce 100644 --- a/core/src/components.d.ts +++ b/core/src/components.d.ts @@ -834,7 +834,7 @@ export namespace Components { */ "accept"?: string; /** - * Indicates whether and how the text value should be automatically capitalized as it is entered/edited by the user. + * Indicates whether and how the text value should be automatically capitalized as it is entered/edited by the user. Available options: `"off"`, `"none"`, `"on"`, `"sentences"`, `"words"`, `"characters"`. */ "autocapitalize": string; /** @@ -4181,7 +4181,7 @@ declare namespace LocalJSX { */ "accept"?: string; /** - * Indicates whether and how the text value should be automatically capitalized as it is entered/edited by the user. + * Indicates whether and how the text value should be automatically capitalized as it is entered/edited by the user. Available options: `"off"`, `"none"`, `"on"`, `"sentences"`, `"words"`, `"characters"`. */ "autocapitalize"?: string; /** diff --git a/core/src/components/input/input.tsx b/core/src/components/input/input.tsx index 66affd3beb..6b579e2012 100644 --- a/core/src/components/input/input.tsx +++ b/core/src/components/input/input.tsx @@ -51,6 +51,7 @@ export class Input implements ComponentInterface { /** * Indicates whether and how the text value should be automatically capitalized as it is entered/edited by the user. + * Available options: `"off"`, `"none"`, `"on"`, `"sentences"`, `"words"`, `"characters"`. */ @Prop() autocapitalize = 'off'; diff --git a/core/src/components/input/readme.md b/core/src/components/input/readme.md index 3ce628511b..f9fcc7a937 100644 --- a/core/src/components/input/readme.md +++ b/core/src/components/input/readme.md @@ -301,7 +301,7 @@ export default defineComponent({ | Property | Attribute | Description | Type | Default | | ---------------- | ---------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -------------- | | `accept` | `accept` | If the value of the type attribute is `"file"`, then this attribute will indicate the types of files that the server accepts, otherwise it will be ignored. The value must be a comma-separated list of unique content type specifiers. | `string \| undefined` | `undefined` | -| `autocapitalize` | `autocapitalize` | Indicates whether and how the text value should be automatically capitalized as it is entered/edited by the user. | `string` | `'off'` | +| `autocapitalize` | `autocapitalize` | Indicates whether and how the text value should be automatically capitalized as it is entered/edited by the user. Available options: `"off"`, `"none"`, `"on"`, `"sentences"`, `"words"`, `"characters"`. | `string` | `'off'` | | `autocomplete` | `autocomplete` | Indicates whether the value of the control can be automatically completed by the browser. | `"on" \| "off" \| "name" \| "honorific-prefix" \| "given-name" \| "additional-name" \| "family-name" \| "honorific-suffix" \| "nickname" \| "email" \| "username" \| "new-password" \| "current-password" \| "one-time-code" \| "organization-title" \| "organization" \| "street-address" \| "address-line1" \| "address-line2" \| "address-line3" \| "address-level4" \| "address-level3" \| "address-level2" \| "address-level1" \| "country" \| "country-name" \| "postal-code" \| "cc-name" \| "cc-given-name" \| "cc-additional-name" \| "cc-family-name" \| "cc-number" \| "cc-exp" \| "cc-exp-month" \| "cc-exp-year" \| "cc-csc" \| "cc-type" \| "transaction-currency" \| "transaction-amount" \| "language" \| "bday" \| "bday-day" \| "bday-month" \| "bday-year" \| "sex" \| "tel" \| "tel-country-code" \| "tel-national" \| "tel-area-code" \| "tel-local" \| "tel-extension" \| "impp" \| "url" \| "photo"` | `'off'` | | `autocorrect` | `autocorrect` | Whether auto correction should be enabled when the user is entering/editing the text value. | `"off" \| "on"` | `'off'` | | `autofocus` | `autofocus` | This Boolean attribute lets you specify that a form control should have input focus when the page loads. | `boolean` | `false` |