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

¿How can I overwrite the method pagination so that every time I change the page, I make a call to my API? #16

Closed
fbarriosCL opened this issue Apr 28, 2021 · 1 comment

Comments

@fbarriosCL
Copy link

Hello, how can I connect pagination section with my API, for example:

I have my endpoint with attributes of pagination:

data: [{id: 9, name: null, total: "200550.0", neto: null, taxes_id: null, type_movement: "",…},…]
per_page: 25
total_items: 765
total_pages: 31 

The attribute data only returns array with 25 results, which is what I send as attribute data :data="data".

<BeeGridTable
      border
      height="560"
      :showFilter="false"
      :showSummary="false"
      :columns="columns"
      :data="data"
      ....

It should show 765 results instead of 25 :(

Total 25 items , the filter result 25 items

¿How can I overwrite the method so that every time I change the page, I make a call to my API?

@jiahengaa
Copy link
Owner

hi @fbarriosCL
Thanks
please update to v1.5.2
For details, please see
http://beegridtable.com/serverFilterAndSortAndPage

jiahengaa added a commit that referenced this issue May 6, 2021
#16
Please update to v1.5.2
For details, please see
http://beegridtable.com/serverFilterAndSortAndPage
@jiahengaa jiahengaa pinned this issue May 7, 2021
@jiahengaa jiahengaa unpinned this issue Aug 8, 2021
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

No branches or pull requests

2 participants