Skip to content
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

Passing generateGroupId props #3520

Open
wants to merge 3 commits into
base: main
Choose a base branch
from

Conversation

Luisgustavom1
Copy link

@Luisgustavom1 Luisgustavom1 commented Jun 4, 2024

Description

In this pull request, I added the optional generateGroupId prop to the TreeDataGrid component to allow for better control over the group IDs.

Changes

  • Added the generateGroupId prop to the TreeDataGrid component.
  • This prop allows developers to generate custom group IDs based on their own logic.
  • The generateGroupId function takes a groupKey and parentId params as input and returns a generated group ID.
  • This prop provides flexibility in generating unique group IDs for each row in the grid.

Usage

To use the generateGroupId prop, simply pass a function as the value for the generateGroupId prop when rendering the TreeDataGrid component.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant