Focuses this data node. Implemented for TreeKeyManagerItem.
()
| 1426 | |
| 1427 | /** Focuses this data node. Implemented for TreeKeyManagerItem. */ |
| 1428 | focus(): void { |
| 1429 | this._tabindex = 0; |
| 1430 | if (this._shouldFocus) { |
| 1431 | this._elementRef.nativeElement.focus(); |
| 1432 | } |
| 1433 | |
| 1434 | this._changeDetectorRef.markForCheck(); |
| 1435 | } |
| 1436 | |
| 1437 | /** Defocus this data node. */ |
| 1438 | unfocus(): void { |
nothing calls this directly
no test coverage detected