mirror of
https://github.com/primefaces/primevue.git
synced 2025-05-09 08:52:34 +00:00
Refactor #4124 - Textarea pt context improvements
This commit is contained in:
parent
6afaa15de3
commit
02f67d1b0f
2 changed files with 25 additions and 1 deletions
17
components/lib/textarea/Textarea.d.ts
vendored
17
components/lib/textarea/Textarea.d.ts
vendored
|
@ -19,6 +19,7 @@ export declare type TextareaPassThroughOptionType = TextareaPassThroughAttribute
|
|||
export interface TextareaPassThroughMethodOptions {
|
||||
instance: any;
|
||||
props: TextareaProps;
|
||||
context: TextareaContext;
|
||||
}
|
||||
|
||||
/**
|
||||
|
@ -44,6 +45,22 @@ export interface TextareaPassThroughAttributes {
|
|||
[key: string]: any;
|
||||
}
|
||||
|
||||
/**
|
||||
* Defines current options in Textarea component.
|
||||
*/
|
||||
export interface TextareaContext {
|
||||
/**
|
||||
* Current filled state of the component as a boolean.
|
||||
* @defaultValue false
|
||||
*/
|
||||
filled: boolean;
|
||||
/**
|
||||
* Current disabled state of the component as a boolean.
|
||||
* @defaultValue false
|
||||
*/
|
||||
disabled: boolean;
|
||||
}
|
||||
|
||||
/**
|
||||
* Defines valid properties in Textarea component. In addition to these, all properties of TextareaHTMLAttributes can be used in this component.
|
||||
* @extends TextareaHTMLAttributes
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue