mirror of
https://github.com/primefaces/primevue.git
synced 2025-05-09 17:02:38 +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/contextmenu/ContextMenu.d.ts
vendored
17
components/lib/contextmenu/ContextMenu.d.ts
vendored
|
@ -20,6 +20,7 @@ export declare type ContextMenuPassThroughOptionType = ContextMenuPassThroughAtt
|
|||
export interface ContextMenuPassThroughMethodOptions {
|
||||
props: ContextMenuProps;
|
||||
state: ContextMenuState;
|
||||
options: ContextMenuOptions;
|
||||
}
|
||||
|
||||
/**
|
||||
|
@ -125,6 +126,22 @@ export interface ContextMenuState {
|
|||
submenuVisible: boolean;
|
||||
}
|
||||
|
||||
/**
|
||||
* Defines current options in ContextMenu component.
|
||||
*/
|
||||
export interface ContextMenuOptions {
|
||||
/**
|
||||
* 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 ContextMenu component.
|
||||
*/
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue