| 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 | }) |
| 2643 | class 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: ` |
nothing calls this directly
no outgoing calls
no test coverage detected