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

Method setDescribedByIds

src/material/input/input.ts:560–568  ·  view source on GitHub ↗

* Implemented as part of MatFormFieldControl. * @docs-private

(ids: string[])

Source from the content-addressed store, hash-verified

558 * @docs-private
559 */
560 setDescribedByIds(ids: string[]) {
561 const element = this._elementRef.nativeElement;
562
563 if (ids.length) {
564 element.setAttribute('aria-describedby', ids.join(' '));
565 } else {
566 element.removeAttribute('aria-describedby');
567 }
568 }
569
570 /**
571 * Implemented as part of MatFormFieldControl.

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected