* Determines the type of the currently focused element. * @private
(element: HTMLElement)
| 740 | * @private |
| 741 | */ |
| 742 | getFocusedElementType(element: HTMLElement): TableFocusTargetElement | undefined { |
| 743 | if (element === this.columnHeader) { |
| 744 | return TableFocusTargetElement.ColumnHeader; |
| 745 | } |
| 746 | |
| 747 | if (element === this.morеBtn) { |
| 748 | return TableFocusTargetElement.MoreButton; |
| 749 | } |
| 750 | |
| 751 | if (this.rows.includes(element as ITableRow)) { |
| 752 | const isGroupRow = element.hasAttribute("ui5-table-group-row"); |
| 753 | return isGroupRow ? TableFocusTargetElement.GroupRow : TableFocusTargetElement.Row; |
| 754 | } |
| 755 | } |
| 756 | |
| 757 | /** |
| 758 | * Toggles focus between the table row's root and the last focused nested element. |
no test coverage detected