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

Allow virtualizing rows when groupBy is active #779

Merged
merged 1 commit into from
Sep 25, 2023
Merged

Conversation

giogonzo
Copy link
Member

@giogonzo giogonzo commented Sep 22, 2023

Closes #778

This PR adds the ability to render a Table that is both virtualized and uses the groupBy feature

@@ -573,17 +573,34 @@ export const VirtualizedRows = {
args: {
stickyHeaders: true,
height: { custom: 340 },
virtualizeRows: true,
virtualizeRows: { estimateRowHeight: () => 92 },
Copy link
Member Author

Choose a reason for hiding this comment

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

not related to this PR, but I noticed that the table can glitch while scrolling if the estimated height is less than the true one. Since we are defaulting internally to the single line text cell height but with the example data we have multiple lines and thus higher rows, we have to provide the estimates from outside for the examples to work smoothly

@giogonzo giogonzo marked this pull request as ready for review September 22, 2023 15:23
@giogonzo giogonzo requested a review from gabro September 22, 2023 15:23
@gabro gabro merged commit e34b7a9 into main Sep 25, 2023
1 check passed
@gabro gabro deleted the virtualize-grouped branch September 25, 2023 10:39
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.

Tech-debt: Support grouped rows in virtualized Table
2 participants