-
Notifications
You must be signed in to change notification settings - Fork 2.2k
Passing generateGroupId props #3520
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
Passing generateGroupId props #3520
Conversation
@Luisgustavom1 can you resolve the conflicts. Thanks! |
d3ea22e
to
2551615
Compare
@amanmahajan7 resolved! can you do a review? |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thank you for the PR
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## main #3520 +/- ##
=======================================
Coverage 98.81% 98.81%
=======================================
Files 47 47
Lines 3451 3456 +5
Branches 748 751 +3
=======================================
+ Hits 3410 3415 +5
Misses 41 41
🚀 New features to boost your workflow:
|
Description
In this pull request, I added the optional
generateGroupId
prop to theTreeDataGrid
component to allow for better control over the group IDs.Changes
generateGroupId
prop to theTreeDataGrid
component.generateGroupId
function takes agroupKey
andparentId
params as input and returns a generated group ID.Usage
To use the
generateGroupId
prop, simply pass a function as the value for thegenerateGroupId
prop when rendering theTreeDataGrid
component.