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

Implemented new VirtualScroll feature for DataTable #2371

Closed
5 tasks done
mertsincan opened this issue Oct 31, 2021 · 0 comments
Closed
5 tasks done

Implemented new VirtualScroll feature for DataTable #2371

mertsincan opened this issue Oct 31, 2021 · 0 comments
Assignees
Labels
Type: Breaking Change Issue contains a breaking change related to a specific component Type: Enhancement Issue contains an enhancement related to a specific component. Additional functionality has been add
Milestone

Comments

@mertsincan
Copy link
Member

mertsincan commented Oct 31, 2021

New DataTable has virtualScrollerOption property and the properties of VirtualScroller component can be used as an object in it. https://primefaces.org/primereact/showcase/#/virtualscroller

Note: DataTable supports vertical VirtualScroller for now. In the future, it'll also support other orientation('both' and 'horizontal') modes.

Removed Attributes;

  • virtualScroll -> virtualScrollerOptions={{ itemSize: ... }}
  • virtualScrollDelay -> virtualScrollerOptions={{ delay: ... }}
  • virtualRowHeight -> virtualScrollerOptions={{ itemSize: ... }}
  • onVirtualScroll -> virtualScrollerOptions={{ onLazyLoad: ... }}

New Attributes;

  • virtualScrollerOptions - Whether to use the virtualScroller feature. The properties of VirtualScroller component can be used like an object in it.
@mertsincan mertsincan added Type: Enhancement Issue contains an enhancement related to a specific component. Additional functionality has been add Type: Breaking Change Issue contains a breaking change related to a specific component labels Oct 31, 2021
@mertsincan mertsincan added this to the 7.0.0 milestone Oct 31, 2021
@mertsincan mertsincan self-assigned this Oct 31, 2021
@mertsincan mertsincan modified the milestones: 8.0.0, 7.0.0-rc1 Nov 1, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Type: Breaking Change Issue contains a breaking change related to a specific component Type: Enhancement Issue contains an enhancement related to a specific component. Additional functionality has been add
Projects
None yet
Development

No branches or pull requests

1 participant