MCPcopy Create free account
hub / github.com/angular/components / CustomMenuPanel

Class CustomMenuPanel

src/material/menu/menu.spec.ts:2632–2655  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2630}
2631
2632@Component({
2633 selector: 'custom-menu',
2634 template: `
2635 <ng-template>
2636 Custom Menu header
2637 <ng-content></ng-content>
2638 </ng-template>
2639 `,
2640 exportAs: 'matCustomMenu',
2641 changeDetection: ChangeDetectionStrategy.Eager,
2642})
2643class CustomMenuPanel implements MatMenuPanel {
2644 direction!: Direction;
2645 xPosition: MenuPositionX = 'after';
2646 yPosition: MenuPositionY = 'below';
2647 overlapTrigger = true;
2648 parentMenu!: MatMenuPanel;
2649
2650 @ViewChild(TemplateRef) templateRef!: TemplateRef<any>;
2651 @Output() readonly close = new EventEmitter<void | 'click' | 'keydown' | 'tab'>();
2652 focusFirstItem = () => {};
2653 resetActiveItem = () => {};
2654 setPositionClasses = () => {};
2655}
2656
2657@Component({
2658 template: `

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected