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

Method registerInput

src/material/chips/chip-grid.ts:303–309  ·  view source on GitHub ↗

Associates an HTML input element with this chip grid.

(inputElement: MatChipTextControl)

Source from the content-addressed store, hash-verified

301
302 /** Associates an HTML input element with this chip grid. */
303 registerInput(inputElement: MatChipTextControl): void {
304 this._chipInput = inputElement;
305 this._chipInput.setDescribedByIds(this._ariaDescribedbyIds);
306
307 // If ids were already attached to host element, can now remove in favor of chipInput
308 this._elementRef.nativeElement.removeAttribute('aria-describedby');
309 }
310
311 /**
312 * Implemented as part of MatFormFieldControl.

Callers

nothing calls this directly

Calls 1

setDescribedByIdsMethod · 0.65

Tested by

no test coverage detected