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

Method focus

src/material/button-toggle/button-toggle.ts:734–736  ·  view source on GitHub ↗

Focuses the button.

(options?: FocusOptions)

Source from the content-addressed store, hash-verified

732
733 /** Focuses the button. */
734 focus(options?: FocusOptions): void {
735 this._buttonElement.nativeElement.focus(options);
736 }
737
738 /** Checks the button toggle due to an interaction with the underlying native button. */
739 _onButtonClick() {

Callers

nothing calls this directly

Calls 1

focusMethod · 0.65

Tested by

no test coverage detected