Focuses the cell or the active widget.
()
| 150 | |
| 151 | /** Focuses the cell or the active widget. */ |
| 152 | focus(): void { |
| 153 | const widget = this.widget(); |
| 154 | if (widget) { |
| 155 | widget.focus(); |
| 156 | } else { |
| 157 | this.element().focus(); |
| 158 | } |
| 159 | } |
| 160 | |
| 161 | /** Gets the tab index for the widget within the cell. */ |
| 162 | widgetTabIndex(): -1 | 0 { |