MCPcopy
hub / github.com/angular/components / MatMenuBarItem

Class MatMenuBarItem

src/material-experimental/menubar/menubar-item.ts:39–48  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

37 providers: [{provide: CdkMenuItem, useExisting: MatMenuBarItem}],
38})
39export class MatMenuBarItem extends CdkMenuItem {
40 override getLabel(): string {
41 if (this.typeaheadLabel !== undefined) {
42 return this.typeaheadLabel || '';
43 }
44 const clone = this._elementRef.nativeElement.cloneNode(true) as Element;
45 removeIcons(clone);
46 return clone.textContent?.trim() || '';
47 }
48}

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…