mirror of
https://github.com/primefaces/primevue.git
synced 2025-05-10 09:22:34 +00:00
Fixed #4862 - MegaMenu / Menubar: menubutton templating
This commit is contained in:
parent
dd2f455683
commit
7d86b48f28
4 changed files with 93 additions and 42 deletions
23
components/lib/megamenu/MegaMenu.d.ts
vendored
23
components/lib/megamenu/MegaMenu.d.ts
vendored
|
@ -318,6 +318,29 @@ export interface MegaMenuSlots {
|
|||
*/
|
||||
hasSubmenu: boolean;
|
||||
}): VNode[];
|
||||
/**
|
||||
* Custom menu button template on responsive mode.
|
||||
* @param {Object} scope - menu button slot's params.
|
||||
*/
|
||||
menubutton(scope: {
|
||||
/**
|
||||
* Current id state as a string
|
||||
*/
|
||||
id: string;
|
||||
/**
|
||||
* Style class of component
|
||||
*/
|
||||
class: string;
|
||||
/**
|
||||
*
|
||||
* Toggle event
|
||||
*/
|
||||
toggleCallback: () => void;
|
||||
}): VNode[];
|
||||
/**
|
||||
* Custom menu button icon template on responsive mode.
|
||||
*/
|
||||
menubuttonicon(): VNode[];
|
||||
/**
|
||||
* Custom submenu icon template.
|
||||
* @param {Object} scope - submenuicon slot's params.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue