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

Method registerInput

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

Associates an HTML input element with this chip grid.

(inputElement: MatChipTextControl)

Source from the content-addressed store, hash-verified

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

Callers

nothing calls this directly

Calls 1

setDescribedByIdsMethod · 0.65

Tested by

no test coverage detected