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

Method constructor

src/material/menu/menu.ts:276–284  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

274 readonly panelId: string = inject(_IdGenerator).getId('mat-menu-panel-');
275
276 constructor() {
277 const defaultOptions = inject<MatMenuDefaultOptions>(MAT_MENU_DEFAULT_OPTIONS);
278 this.overlayPanelClass = defaultOptions.overlayPanelClass || '';
279 this._xPosition = defaultOptions.xPosition;
280 this._yPosition = defaultOptions.yPosition;
281 this.backdropClass = defaultOptions.backdropClass;
282 this.overlapTrigger = defaultOptions.overlapTrigger;
283 this.hasBackdrop = defaultOptions.hasBackdrop;
284 }
285
286 ngOnInit() {
287 this.setPositionClasses();

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected