mirror of
https://github.com/primefaces/primevue.git
synced 2025-05-09 00:42:36 +00:00
Refactor #3907 - options have changed as context
This commit is contained in:
parent
6005b67be7
commit
5aab120fe5
16 changed files with 75 additions and 24 deletions
12
components/lib/menu/Menu.d.ts
vendored
12
components/lib/menu/Menu.d.ts
vendored
|
@ -19,6 +19,7 @@ export declare type MenuPassThroughOptionType = MenuPassThroughAttributes | ((op
|
|||
export interface MenuPassThroughMethodOptions {
|
||||
props: MenuProps;
|
||||
state: MenuState;
|
||||
context: MenuContext;
|
||||
}
|
||||
|
||||
/**
|
||||
|
@ -107,6 +108,17 @@ export interface MenuState {
|
|||
selectedOptionIndex: number;
|
||||
}
|
||||
|
||||
/**
|
||||
* Defines current options in Menu component.
|
||||
*/
|
||||
export interface MenuContext {
|
||||
/**
|
||||
* Current focused state of menuitem as a boolean.
|
||||
* @defaultValue false
|
||||
*/
|
||||
focused: boolean;
|
||||
}
|
||||
|
||||
/**
|
||||
* Defines valid properties in Menu component.
|
||||
*/
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue