Open Luisgustavom1 opened 4 months ago
In this pull request, I added the optional generateGroupId prop to the TreeDataGrid component to allow for better control over the group IDs.
generateGroupId
TreeDataGrid
groupKey
parentId
To use the generateGroupId prop, simply pass a function as the value for the generateGroupId prop when rendering the TreeDataGrid component.
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.