mirror of
https://github.com/primefaces/primevue.git
synced 2025-05-08 16:37:15 +00:00
Fixed #4379 - Menu components: RouterBindProps typing
This commit is contained in:
parent
e895b78e99
commit
411d62df2c
10 changed files with 206 additions and 10 deletions
24
components/lib/panelmenu/PanelMenu.d.ts
vendored
24
components/lib/panelmenu/PanelMenu.d.ts
vendored
|
@ -191,6 +191,28 @@ export interface PanelMenuPanelOpenEvent {
|
|||
*/
|
||||
export interface PanelMenuPanelCloseEvent extends PanelMenuPanelOpenEvent {}
|
||||
|
||||
/**
|
||||
* Defines valid router binding props in PanelMenu component.
|
||||
*/
|
||||
export interface PanelMenuRouterBindProps {
|
||||
/**
|
||||
* Action element binding
|
||||
*/
|
||||
action: object;
|
||||
/**
|
||||
* Icon element binding
|
||||
*/
|
||||
icon: object;
|
||||
/**
|
||||
* Label element binding
|
||||
*/
|
||||
label: object;
|
||||
/**
|
||||
* Submenuicon elemnt binding
|
||||
*/
|
||||
submenuicon: object;
|
||||
}
|
||||
|
||||
/**
|
||||
* Defines valid properties in PanelMenu component.
|
||||
*/
|
||||
|
@ -245,7 +267,7 @@ export interface PanelMenuSlots {
|
|||
/**
|
||||
* Binding properties of the menuitem
|
||||
*/
|
||||
props: (...args: any) => string;
|
||||
props: PanelMenuRouterBindProps;
|
||||
/**
|
||||
* Whether or not there is a submenu
|
||||
*/
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue