* Returns the rows within the table if any. Can be filtered to a specific row group if provided * via `element`.
(opts: {element?: HTMLElement} = {})
| 543 | * via `element`. |
| 544 | */ |
| 545 | getRows(opts: {element?: HTMLElement} = {}): HTMLElement[] { |
| 546 | let {element} = opts; |
| 547 | if (element != null) { |
| 548 | return within(element).queryAllByRole('row'); |
| 549 | } |
| 550 | return this.getRowGroups() |
| 551 | .slice(1) |
| 552 | .flatMap(rowGroup => within(rowGroup).queryAllByRole('row')); |
| 553 | } |
| 554 | |
| 555 | /** |
| 556 | * Returns the currently selected rows within the table if any. |
no test coverage detected