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

Method constructor

src/aria/private/menu/menu.ts:847–854  ·  view source on GitHub ↗
(readonly inputs: MenuItemInputs<V>)

Source from the content-addressed store, hash-verified

845 readonly pendingFocus = signal<'first' | 'last' | null>(null);
846
847 constructor(readonly inputs: MenuItemInputs<V>) {
848 this.id = inputs.id;
849 this.value = inputs.value ?? signal(undefined);
850 this.element = inputs.element;
851 this.submenu = this.inputs.submenu;
852 this.searchTerm = inputs.searchTerm;
853 this.selectable = computed(() => !this.submenu());
854 }
855
856 /** Flushes any pending focus when the submenu instance becomes available. */
857 pendingFocusEffect(): void {

Callers

nothing calls this directly

Calls 2

signalFunction · 0.90
computedFunction · 0.90

Tested by

no test coverage detected