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

Add group selection #343

Merged
merged 1 commit into from
Sep 21, 2021

Conversation

LuchoTurtle
Copy link
Contributor

Related Issue

Credits to this PR fully go to @ollyrowe, I just took his unmerged PR and added here it since the original Material Table repo is stale and @mbrn is not responding. I just did some compatibility-related changes.

Relates to #503, #2314 and #503 of the original repo.

Description

Allows the user to select all the children of groups by clicking a checkbox of the group row, when selection and grouping are true. This is something that has been mentioned several times and many people could use this (myself included, it's highly requested 😅 )

Related PRs

No related PRs in other branches, only the aforementioned on the original repo.

Impacted Areas in Application

MTableBody and MTableGroupRow

Additional Notes

I did not add a demo since in the original PR @Domino987 requested to be removed. However, I've tested it by slightly altering a pre-existing demo and it works. If y'all want me to add an additional for this purpose, I'd be glad to.

image

Additionally, you might have noticed I changed package.json to using npx. This is mainly because I was working on Windows and I couldn't commit any changes because of the "." is not recognized as an internal command thrown when running Husky's pre-commit hook. Feel free to revert this but I think it might resolve some cross-env concerns 😄 .

@LuchoTurtle LuchoTurtle changed the title feat: Add group selection Add group selection Sep 15, 2021
@Domino987
Copy link
Contributor

Hi thanks for this. I will take a look today. Looks good so far though. I requested the removal since we only had a few demos at that point. By now, we have a multitude and a demo would be appreciated. I will also look into the npx. Thanks again

Copy link
Contributor

@Domino987 Domino987 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is fantastic . ty

@Domino987 Domino987 merged commit 479798c into material-table-core:master Sep 21, 2021
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.

2 participants