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

Method focus

src/material/button/testing/button-harness.ts:100–102  ·  view source on GitHub ↗

Focuses the button and returns a void promise that indicates when the action is complete.

()

Source from the content-addressed store, hash-verified

98
99 /** Focuses the button and returns a void promise that indicates when the action is complete. */
100 async focus(): Promise<void> {
101 return (await this.host()).focus();
102 }
103
104 /** Blurs the button and returns a void promise that indicates when the action is complete. */
105 async blur(): Promise<void> {

Callers

nothing calls this directly

Calls 1

focusMethod · 0.65

Tested by

no test coverage detected