mirror of
https://github.com/primefaces/primevue.git
synced 2025-05-08 16:37:15 +00:00
Checkbox updates for pt
This commit is contained in:
parent
5ce8c2a97f
commit
2d1a301c22
2 changed files with 37 additions and 3 deletions
25
components/lib/checkbox/Checkbox.d.ts
vendored
25
components/lib/checkbox/Checkbox.d.ts
vendored
|
@ -18,6 +18,7 @@ export declare type CheckboxPassThroughOptionType = CheckboxPassThroughAttribute
|
|||
export interface CheckboxPassThroughMethodOptions {
|
||||
props: CheckboxProps;
|
||||
state: CheckboxState;
|
||||
context: CheckboxContext;
|
||||
}
|
||||
|
||||
/**
|
||||
|
@ -151,6 +152,30 @@ export interface CheckboxProps {
|
|||
unstyled?: boolean;
|
||||
}
|
||||
|
||||
/**
|
||||
* Defines current options in Checkbox component.
|
||||
*/
|
||||
export interface CheckboxContext {
|
||||
/**
|
||||
* Current checked state of the item as a boolean.
|
||||
* @defaultValue false
|
||||
*/
|
||||
checked: boolean;
|
||||
/**
|
||||
* Current focus state of the item as a boolean.
|
||||
* @defaultValue false
|
||||
*/
|
||||
focused: boolean;
|
||||
/**
|
||||
* Current disabled state of the item as a boolean.
|
||||
* @defaultValue false
|
||||
*/
|
||||
disabled: boolean;
|
||||
}
|
||||
|
||||
/**
|
||||
* Defines valid slots in Checkbox component.
|
||||
*/
|
||||
export interface CheckboxSlots {
|
||||
/**
|
||||
* Custom icon template.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue