mirror of
https://github.com/primefaces/primevue.git
synced 2025-05-10 09:22:34 +00:00
Refactor #3907 - Options added
This commit is contained in:
parent
bd0152fdef
commit
059f7d7f68
10 changed files with 227 additions and 56 deletions
17
components/lib/megamenu/MegaMenu.d.ts
vendored
17
components/lib/megamenu/MegaMenu.d.ts
vendored
|
@ -19,6 +19,7 @@ export declare type MegaMenuPassThroughOptionType = MegaMenuPassThroughAttribute
|
|||
export interface MegaMenuPassThroughMethodOptions {
|
||||
props: MegaMenuProps;
|
||||
state: MegaMenuState;
|
||||
options: MegaMenuOptions;
|
||||
}
|
||||
|
||||
/**
|
||||
|
@ -138,6 +139,22 @@ export interface MegaMenuState {
|
|||
activeItem: MenuItem;
|
||||
}
|
||||
|
||||
/**
|
||||
* Defines current options in MegaMenu component.
|
||||
*/
|
||||
export interface MegaMenuOptions {
|
||||
/**
|
||||
* Current active state of menuitem as a boolean.
|
||||
* @defaultValue false
|
||||
*/
|
||||
active: boolean;
|
||||
/**
|
||||
* Current focused state of menuitem as a boolean.
|
||||
* @defaultValue false
|
||||
*/
|
||||
focused: boolean;
|
||||
}
|
||||
|
||||
/**
|
||||
* Defines valid properties in MegaMenu component.
|
||||
*/
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue