From e00c9cbd4c6b898056bc63b66a75089a6cc2ab8a Mon Sep 17 00:00:00 2001 From: Sean Perkins Date: Thu, 13 Jan 2022 13:00:33 -0500 Subject: [PATCH] docs(textarea): available autocapitalize options (#24574) --- core/src/components.d.ts | 4 ++-- core/src/components/textarea/readme.md | 2 +- core/src/components/textarea/textarea.tsx | 1 + 3 files changed, 4 insertions(+), 3 deletions(-) diff --git a/core/src/components.d.ts b/core/src/components.d.ts index 89e5e92ed2..8c6b829c21 100644 --- a/core/src/components.d.ts +++ b/core/src/components.d.ts @@ -2722,7 +2722,7 @@ export namespace Components { */ "autoGrow": boolean; /** - * 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; /** @@ -6430,7 +6430,7 @@ declare namespace LocalJSX { */ "autoGrow"?: boolean; /** - * 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/textarea/readme.md b/core/src/components/textarea/readme.md index 27943cae2d..5cbc8351ba 100644 --- a/core/src/components/textarea/readme.md +++ b/core/src/components/textarea/readme.md @@ -288,7 +288,7 @@ export default defineComponent({ | Property | Attribute | Description | Type | Default | | ---------------- | ---------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------- | -------------- | | `autoGrow` | `auto-grow` | If `true`, the element height will increase based on the value. | `boolean` | `false` | -| `autocapitalize` | `autocapitalize` | Indicates whether and how the text value should be automatically capitalized as it is entered/edited by the user. | `string` | `'none'` | +| `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` | `'none'` | | `autofocus` | `autofocus` | This Boolean attribute lets you specify that a form control should have input focus when the page loads. | `boolean` | `false` | | `clearOnEdit` | `clear-on-edit` | If `true`, the value will be cleared after focus upon edit. Defaults to `true` when `type` is `"password"`, `false` for all other types. | `boolean` | `false` | | `color` | `color` | The color to use from your application's color palette. Default options are: `"primary"`, `"secondary"`, `"tertiary"`, `"success"`, `"warning"`, `"danger"`, `"light"`, `"medium"`, and `"dark"`. For more information on colors, see [theming](/docs/theming/basics). | `string \| undefined` | `undefined` | diff --git a/core/src/components/textarea/textarea.tsx b/core/src/components/textarea/textarea.tsx index 2c3d16b83e..68f733ee55 100644 --- a/core/src/components/textarea/textarea.tsx +++ b/core/src/components/textarea/textarea.tsx @@ -47,6 +47,7 @@ export class Textarea 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 = 'none';