mirror of
https://github.com/primefaces/primevue.git
synced 2025-05-08 16:37:15 +00:00
Refactor #3922 - For SelectButton
This commit is contained in:
parent
cae74f5c97
commit
515ae35fc5
2 changed files with 27 additions and 2 deletions
17
components/lib/selectbutton/SelectButton.d.ts
vendored
17
components/lib/selectbutton/SelectButton.d.ts
vendored
|
@ -18,6 +18,7 @@ export declare type SelectButtonPassThroughOptionType = SelectButtonPassThroughA
|
|||
export interface SelectButtonPassThroughMethodOptions {
|
||||
props: SelectButtonProps;
|
||||
state: SelectButtonState;
|
||||
context: SelectButtonContext;
|
||||
}
|
||||
|
||||
/**
|
||||
|
@ -71,6 +72,22 @@ export interface SelectButtonState {
|
|||
focusedIndex: number;
|
||||
}
|
||||
|
||||
/**
|
||||
* Defines current options in SelectButton component.
|
||||
*/
|
||||
export interface SelectButtonContext {
|
||||
/**
|
||||
* Current active state of the item as a boolean.
|
||||
* @defaultValue false
|
||||
*/
|
||||
active: boolean;
|
||||
/**
|
||||
* Current focused state of item as a boolean.
|
||||
* @defaultValue false
|
||||
*/
|
||||
focused: boolean;
|
||||
}
|
||||
|
||||
/**
|
||||
* Defines valid properties in SelectButton component.
|
||||
*/
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue