This repository has been archived by the owner on Nov 5, 2023. It is now read-only.
Using Vue-virtual-scroll-grid with axios #69
Answered
by
rocwang
Aditi-1400
asked this question in
Q&A
-
Hey everyone, I've been wanting to use this npm package for one of my projects and it looks great to me. |
Beta Was this translation helpful? Give feedback.
Answered by
rocwang
Jun 30, 2021
Replies: 1 comment 2 replies
-
Basically, you need to write a function that accepts a page number and a page size, then uses axios to fetch the items from your backend in a paginated way. Pass this function to the vue-virtual-scroll-grid component as the P.S. If you have further question, please post it in Discussions instead. Issues is not for general "how to" help. |
Beta Was this translation helpful? Give feedback.
2 replies
Answer selected by
rocwang
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Basically, you need to write a function that accepts a page number and a page size, then uses axios to fetch the items from your backend in a paginated way. Pass this function to the vue-virtual-scroll-grid component as the
pageProvider
prop. See the example here.P.S. If you have further question, please post it in Discussions instead. Issues is not for general "how to" help.