-
export interface RowModel { |
Beta Was this translation helpful? Give feedback.
Answered by
nktnet1
Jan 5, 2025
Replies: 1 comment
-
As of v8, see https://tanstack.com/table/v8/docs/guide/row-models Each row model will provide you the rows in 3 different useful formats:
console.log(table.getRowModel().rows) // array of rows
console.log(table.getRowModel().flatRows) // array of rows, but all sub-rows are flattened into the top level
console.log(table.getRowModel().rowsById['row-id']) // object of rows, where each row is keyed by its `id` |
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
xkomiks
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
As of v8, see https://tanstack.com/table/v8/docs/guide/row-models
Row Model Data Structure
Each row model will provide you the rows in 3 different useful formats:
rows
- An array of rows.flatRows
- An array of rows, but all sub-rows are flattened into the top level.rowsById
- An object of rows, where each row is keyed by its id. This is useful for quickly looking up rows by their id with better performance.