mirror of
https://github.com/primefaces/primevue.git
synced 2025-05-10 09:22:34 +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/menubar/Menubar.d.ts
vendored
24
components/lib/menubar/Menubar.d.ts
vendored
|
@ -175,6 +175,28 @@ export interface MenubarContext {
|
|||
level: number;
|
||||
}
|
||||
|
||||
/**
|
||||
* Defines valid router binding props in Menubar component.
|
||||
*/
|
||||
export interface MenubarRouterBindProps {
|
||||
/**
|
||||
* Action element binding
|
||||
*/
|
||||
action: object;
|
||||
/**
|
||||
* Icon element binding
|
||||
*/
|
||||
icon: object;
|
||||
/**
|
||||
* Label element binding
|
||||
*/
|
||||
label: object;
|
||||
/**
|
||||
* Submenuicon elemnt binding
|
||||
*/
|
||||
submenuicon: object;
|
||||
}
|
||||
|
||||
/**
|
||||
* Defines valid properties in Menubar component.
|
||||
*/
|
||||
|
@ -240,7 +262,7 @@ export interface MenubarSlots {
|
|||
/**
|
||||
* Binding properties of the menuitem
|
||||
*/
|
||||
props: (...args: any) => string;
|
||||
props: MenubarRouterBindProps;
|
||||
/**
|
||||
* State of the root
|
||||
*/
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue