Activates the widget.
(event?: KeyboardEvent | FocusEvent)
| 181 | |
| 182 | /** Activates the widget. */ |
| 183 | activate(event?: KeyboardEvent | FocusEvent): void { |
| 184 | if (this.isActivated()) return; |
| 185 | if (this.inputs.widgetType() === 'simple') return; |
| 186 | |
| 187 | this.isActivated.set(true); |
| 188 | this.lastActivateEvent.set(event); |
| 189 | } |
| 190 | |
| 191 | /** Deactivates the widget and restores focus to the widget's host element. */ |
| 192 | deactivate(event?: KeyboardEvent | FocusEvent): void { |
no test coverage detected