mirror of
https://github.com/primefaces/primevue.git
synced 2025-05-09 08:52:34 +00:00
Refactor #4211 - For ToggleButton
This commit is contained in:
parent
991369ff6e
commit
9672b27cf0
2 changed files with 35 additions and 4 deletions
24
components/lib/togglebutton/ToggleButton.d.ts
vendored
24
components/lib/togglebutton/ToggleButton.d.ts
vendored
|
@ -20,6 +20,7 @@ export interface ToggleButtonPassThroughMethodOptions {
|
|||
instance: any;
|
||||
props: ToggleButtonProps;
|
||||
state: ToggleButtonState;
|
||||
context: ToggleButtonContext;
|
||||
}
|
||||
|
||||
/**
|
||||
|
@ -66,11 +67,32 @@ export interface ToggleButtonPassThroughAttributes {
|
|||
*/
|
||||
export interface ToggleButtonState {
|
||||
/**
|
||||
* Focused state as a number.
|
||||
* Focused state as a boolean.
|
||||
*/
|
||||
focused: boolean;
|
||||
}
|
||||
|
||||
/**
|
||||
* Defines current options in ToggleButton component.
|
||||
*/
|
||||
export interface ToggleButtonContext {
|
||||
/**
|
||||
* Current focused state as a boolean.
|
||||
* @defaultValue false
|
||||
*/
|
||||
focused: boolean;
|
||||
/**
|
||||
* Current disabled state as a boolean.
|
||||
* @defaultValue false
|
||||
*/
|
||||
disabled: boolean;
|
||||
/**
|
||||
* Current highlighted state as a boolean.
|
||||
* @defaultValue false
|
||||
*/
|
||||
highlighted: boolean;
|
||||
}
|
||||
|
||||
/**
|
||||
* Defines valid properties in ToggleButton component.
|
||||
*/
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue