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

feat: conditional selection of grid items #6740

Merged
merged 12 commits into from
Oct 30, 2024

Conversation

sissbruecker
Copy link
Contributor

@sissbruecker sissbruecker commented Oct 23, 2024

Adds an itemSelectableProvider property to Grid that can be configured with a predicate that conditionally allows or disallows changing the selection state of individual items by the user. Programmatic selection is not affected.

As with the web component, select all and deselect all are not supported for now, and the select all checkbox is hidden when using a predicate.

Part of vaadin/web-components#1947

@sissbruecker sissbruecker marked this pull request as ready for review October 28, 2024 15:26
@sissbruecker sissbruecker enabled auto-merge (squash) October 30, 2024 07:35
Copy link

sonarcloud bot commented Oct 30, 2024

@sissbruecker sissbruecker merged commit ca44217 into main Oct 30, 2024
5 checks passed
@sissbruecker sissbruecker deleted the feat/grid-selectable-provider branch October 30, 2024 07:54
@vaadin-bot
Copy link
Collaborator

This ticket/PR has been released with Vaadin 24.6.0.alpha2 and is also targeting the upcoming stable 24.6.0 version.

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.

3 participants