-
Couldn't load subscription status.
- Fork 2.2k
Added options for enableVirtualization #3874
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
base: main
Are you sure you want to change the base?
Conversation
Virtualization options
Fix for enabledVirtualisation.columns == undefined defaulting to fals…
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We need to add extensive tests for the new functionality
| */ | ||
| /** @default true */ | ||
| enableVirtualization?: Maybe<boolean>; | ||
| enableVirtualization?: Maybe<boolean | VirtualizationOptions>; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
| enableVirtualization?: Maybe<boolean | VirtualizationOptions>; | |
| enableVirtualization?: Maybe<'row' | 'column' | boolean>; |
I think we can keep it simple for now.
Changed type of enableVirtualization property on DataGrid to accept either a boolean, undefiend or a VirtualizationOptions object
which allows the user to enable or disable virtualization for rows and or columns and also specify the overscan threshold for rows (default 4).
Change maintains compatibility with existing boolean type and defaults.
Fixes #3619