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

DataTable: No onLazyLoad property in virtualScrollerOptions props #2729

Closed
tsharish opened this issue Jun 28, 2022 · 0 comments
Closed

DataTable: No onLazyLoad property in virtualScrollerOptions props #2729

tsharish opened this issue Jun 28, 2022 · 0 comments
Assignees
Labels
Type: Bug Issue contains a bug related to a specific component. Something about the component is not working
Milestone

Comments

@tsharish
Copy link

Describe the bug

I am trying to use the Virtual Scroller option in a DataTable to do lazy loading. When I try to specify the 'onLazyLoad' property in the 'virtualScrollerOptions' prop, VSCode issues the following error (also see the screenshot):

Type '{ lazy: true; onLazyLoad: () => Promise<void>; }' is not assignable to type 'VirtualScrollerProps'.
 Object literal may only specify known properties, and 'onLazyLoad' does not exist in type 'VirtualScrollerProps'.

I am following the Lazy Loading example here.

error

Reproducer

No response

PrimeVue version

3.12.6

Vue version

3.x

Language

TypeScript

Build / Runtime

Vite

Browser(s)

No response

Steps to reproduce the behavior

No response

Expected behavior

No response

@tsharish tsharish added the Type: Bug Issue contains a bug related to a specific component. Something about the component is not working label Jun 28, 2022
@tsharish tsharish changed the title Datatable: No onLazyLoad property in virtualScrollerOptions props DataTable: No onLazyLoad property in virtualScrollerOptions props Jun 28, 2022
@tugcekucukoglu tugcekucukoglu added this to the 3.15.1 milestone Jun 29, 2022
@tugcekucukoglu tugcekucukoglu self-assigned this Jun 29, 2022
tugcekucukoglu added a commit that referenced this issue Jun 29, 2022
Fixed #2729 - DataTable: No onLazyLoad property in virtualScrollerOpt…
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Type: Bug Issue contains a bug related to a specific component. Something about the component is not working
Projects
None yet
Development

No branches or pull requests

2 participants