Problem
Row selection in tedi-table appears to be keyed by row index only. There's no available getRowId input to key selection state by a stable entity id, the way TanStack Table allows underneath.
This makes selection state hard to control from the outside as soon as the data isn't static (filtering, adding/removing rows etc).
Currently it is necessary to maintain a mapping of selected row indexes across updates.
Solution
Expose getRowId as an input that's passed straight through to the TanStack table options.
Examples and information
This would allow to get the rowSelection based on object data:
<tedi-table ... [getRowId]="getPersonId" />
getPersonId = (row: Person) => row.id;.
https://tanstack.com/table/latest/docs/api/core/table#getrowid
Project
DoD
Problem
Row selection in tedi-table appears to be keyed by row index only. There's no available getRowId input to key selection state by a stable entity id, the way TanStack Table allows underneath.
This makes selection state hard to control from the outside as soon as the data isn't static (filtering, adding/removing rows etc).
Currently it is necessary to maintain a mapping of selected row indexes across updates.
Solution
Expose getRowId as an input that's passed straight through to the TanStack table options.
Examples and information
This would allow to get the
rowSelectionbased on object data:<tedi-table ... [getRowId]="getPersonId" />getPersonId = (row: Person) => row.id;.https://tanstack.com/table/latest/docs/api/core/table#getrowid
Project
DoD
semantic-release)