Focuses the button.
(origin: FocusOrigin = 'program', options?: FocusOptions)
| 183 | |
| 184 | /** Focuses the button. */ |
| 185 | focus(origin: FocusOrigin = 'program', options?: FocusOptions): void { |
| 186 | if (origin) { |
| 187 | this._focusMonitor.focusVia(this._elementRef.nativeElement, origin, options); |
| 188 | } else { |
| 189 | this._elementRef.nativeElement.focus(options); |
| 190 | } |
| 191 | } |
| 192 | |
| 193 | protected _getAriaDisabled() { |
| 194 | if (this.ariaDisabled != null) { |