Skip to content

Commit

Permalink
Fixed #4352 - Menu: new submenuheader slot
Browse files Browse the repository at this point in the history
  • Loading branch information
tugcekucukoglu committed Aug 29, 2023
1 parent 693ce32 commit bd1f590
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 1 deletion.
6 changes: 5 additions & 1 deletion api-generator/components/menu.js
Original file line number Diff line number Diff line change
Expand Up @@ -71,11 +71,15 @@ const MenuSlots = [
},
{
name: 'item',
description: 'Template of a menuitem.'
description: 'Custom item template.'
},
{
name: 'itemicon',
description: 'Custom item icon template.'
},
{
name: 'submenuheader',
description: 'Custom submenuheader template.'
}
];

Expand Down
10 changes: 10 additions & 0 deletions components/lib/menu/Menu.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -233,6 +233,16 @@ export interface MenuSlots {
*/
class: any;
}): VNode[];
/**
* Custom item template.
* @param {Object} scope - submenuheader slot's params.
*/
submenuheader(scope: {
/**
* Menuitem instance
*/
submenuheader: MenuItem;
}): VNode[];
}

/**
Expand Down

0 comments on commit bd1f590

Please sign in to comment.