-
Notifications
You must be signed in to change notification settings - Fork 38
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Table : Set row id #1647
Comments
You can use the <Table
...
getRowId={(row) => row.productId}
/> You can find all other Table props on our Table documentation page (WIP). |
The |
Actually, upon testing it myself, I noticed no type error when trying to do this. I made a codesandbox for this. In the sandbox, on L95, we are modifying the internal row id using After discussing over DMs, looks like there was some confusion between |
From a user perspective. |
you could use |
|
you can find the first instance of $(`#${rowId} [aria-expanded]`) https://codesandbox.io/s/sparkling-water-683j53?file=/src/App.tsx i don't think it makes sense to add ids to expander buttons by default, but we could theoretically support passing a custom id to the expander buttons if you have ideas on a comfortable API. |
I added a id to my cell, not the row. my bad. |
I would like to be able to set a custom id for my table rows.
Ex:
Current workaround:
Trick typescript by extanding the GetRowProps class manually.
The text was updated successfully, but these errors were encountered: