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

Method setDescribedByIds

src/material/select/select.ts:1393–1401  ·  view source on GitHub ↗

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

(ids: string[])

Source from the content-addressed store, hash-verified

1391 * @docs-private
1392 */
1393 setDescribedByIds(ids: string[]) {
1394 const element = this._elementRef.nativeElement;
1395
1396 if (ids.length) {
1397 element.setAttribute('aria-describedby', ids.join(' '));
1398 } else {
1399 element.removeAttribute('aria-describedby');
1400 }
1401 }
1402
1403 /**
1404 * Implemented as part of MatFormFieldControl.

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected