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

fix(DataGrid): add support for selectrow and nestedrow V1 #4360

Merged

Conversation

Ratheeshrajan
Copy link
Member

Contributes to #3887

Add support for selected nested rows in the Datagrid.

Note: This PR only covers the selectable nested row part of #3887. The second acceptance criteria in comment "Selecting parent should not select all children by default" is coming from the React table and it's hard to override. If there is subRows then child rows get selected when parent row is selected.

What did you change?

rowId selection changed to a combination of rowId and index so the nested rows will have unique Id with depth

How did you test and verify your work?

Storybook > With selectable nested rows

@Ratheeshrajan Ratheeshrajan requested a review from a team as a code owner February 20, 2024 13:30
Copy link

netlify bot commented Feb 20, 2024

Deploy Preview for v1-carbon-for-ibm-products ready!

Name Link
🔨 Latest commit 5af65de
🔍 Latest deploy log https://app.netlify.com/sites/v1-carbon-for-ibm-products/deploys/65d4a98901768900084b47dd
😎 Deploy Preview https://deploy-preview-4360--v1-carbon-for-ibm-products.netlify.app/
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site configuration.

@matthewgallo matthewgallo merged commit 35c07fd into carbon-design-system:main_v1 Feb 20, 2024
13 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants