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

Method setDescribedByIds

src/material/chips/chip-input.ts:230–240  ·  view source on GitHub ↗
(ids: string[])

Source from the content-addressed store, hash-verified

228 }
229
230 setDescribedByIds(ids: string[]): void {
231 const element = this._elementRef.nativeElement;
232
233 // Set the value directly in the DOM since this binding
234 // is prone to "changed after checked" errors.
235 if (ids.length) {
236 element.setAttribute('aria-describedby', ids.join(' '));
237 } else {
238 element.removeAttribute('aria-describedby');
239 }
240 }
241
242 /** Checks whether a keycode is one of the configured separators. */
243 private _isSeparatorKey(event: KeyboardEvent): boolean {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected