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

Method focus

src/material/checkbox/checkbox.ts:125–127  ·  view source on GitHub ↗

Focuses the checkbox.

()

Source from the content-addressed store, hash-verified

123
124 /** Focuses the checkbox. */
125 focus() {
126 this._inputElement.nativeElement.focus();
127 }
128
129 /** Creates the change event that will be emitted by the checkbox. */
130 protected _createChangeEvent(isChecked: boolean) {

Callers

nothing calls this directly

Calls 1

focusMethod · 0.65

Tested by

no test coverage detected