mirror of
https://github.com/ionic-team/ionic-framework.git
synced 2025-08-23 22:17:40 +08:00
feat(textarea): add option to expand textarea as value changes (#16916)
* feat(textarea): add autoGrow - set height to scrollHeight * change 1px to inherit, remove additional 4px
This commit is contained in:

committed by
Liam DeBeasi

parent
669ec0da3d
commit
cc8678ad58
8
core/src/components.d.ts
vendored
8
core/src/components.d.ts
vendored
@ -4604,6 +4604,10 @@ export namespace Components {
|
||||
}
|
||||
|
||||
interface IonTextarea {
|
||||
/**
|
||||
* If `true`, the element height will increase based on the value.
|
||||
*/
|
||||
'autoGrow': boolean;
|
||||
/**
|
||||
* Indicates whether and how the text value should be automatically capitalized as it is entered/edited by the user.
|
||||
*/
|
||||
@ -4686,6 +4690,10 @@ export namespace Components {
|
||||
'wrap'?: 'hard' | 'soft' | 'off';
|
||||
}
|
||||
interface IonTextareaAttributes extends StencilHTMLAttributes {
|
||||
/**
|
||||
* If `true`, the element height will increase based on the value.
|
||||
*/
|
||||
'autoGrow'?: boolean;
|
||||
/**
|
||||
* Indicates whether and how the text value should be automatically capitalized as it is entered/edited by the user.
|
||||
*/
|
||||
|
Reference in New Issue
Block a user