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

Method focus

src/material/list/selection-list.ts:212–214  ·  view source on GitHub ↗

Focuses the selection list.

(options?: FocusOptions)

Source from the content-addressed store, hash-verified

210
211 /** Focuses the selection list. */
212 focus(options?: FocusOptions) {
213 this._element.nativeElement.focus(options);
214 }
215
216 /** Selects all of the options. Returns the options that changed as a result. */
217 selectAll(): MatListOption[] {

Callers

nothing calls this directly

Calls 1

focusMethod · 0.65

Tested by

no test coverage detected