Skip to content

OverflowSubmenuComponent

component

A bare MatMenu panel rendering a list of OverflowMenuItems. Used by OverflowMenuComponent to provide the flyout of an item that has children.

The component references itself, so items may be nested to any depth. Expose the panel to a trigger using the matMenu view child:

Example :

<button [matMenuTriggerFor]="sub.matMenu()">...</button>
<yuv-overflow-submenu #sub [items]="item.children!" />

Selector: yuv-overflow-submenu

Standalone: No

Type: string

Optional accessible label for the menu panel.

Type: OverflowMenuItem[]

Required: Yes

The items to render within the menu panel.

Type: unknown

Default Value: viewChild.required<MatMenu>('menuRef')

The menu panel, to be bound to a matMenuTriggerFor of the triggering element.