We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
As requested here.
Gist:
The rowExpansion property object should also include:
rowExpansion
records
onChange
onChange: (records: T[]) => void
The text was updated successfully, but these errors were encountered:
@icflorescu Have you had a chance to work on this issue yet? I can take a crack at it if you haven't.
Sorry, something went wrong.
@otobot1 Not yet, but I will over the weekend.
Done in v1.7.9. Can be used like this:
v1.7.9
<DataTable // ... rowExpansion={{ // ... expanded: { recordIds: expandedRecordIds, onRecordIdsChange: setExpandedRecordIds, }, }} />
Full working example in Controlled mode section of this page.
@otobot1 if you're curious, this is handled mostly in the useRowExpansion hook here.
useRowExpansion
I'll check it out!
icflorescu
No branches or pull requests
As requested here.
Gist:
The
rowExpansion
property object should also include:records
→ currently expanded recordsonChange
→ callback fired when currently expanded records change:onChange: (records: T[]) => void
The text was updated successfully, but these errors were encountered: