CoreOptions
Properties
Set this option to true
to output cell debugging information to the console. API Docs(https://tanstack.com/table/v8/docs/api/core/table#debugcells]
This optional function is used to derive a unique ID for any given row. If not provided the rows index is used (nested rows join together with .
using their grandparents' index eg. index.index.index
). If you need to identify individual rows that are originating from any server-side operations, it's suggested you use this function to return an ID that makes sense regardless of network IO/ambiguity eg. a userId, taskId, database ID field, etc.
This optional function is used to access the sub rows for any given row. If you are using nested rows, you will need to use this function to return the sub rows object (or undefined) from the row.
Use this option to optionally pass initial state to the table. This state will be used when resetting various table states either automatically by the table (eg. options.autoResetPageIndex
) or via functions like table.resetRowSelection()
. Most reset function allow you optionally pass a flag to reset to a blank/default state instead of the initial state.
The state
option can be used to optionally control part or all of the table state. The state you pass here will merge with and overwrite the internal automatically-managed state to produce the final state for the table. You can also listen to state changes via the onStateChange
option.