ratiw / vue-table

data table simplify! -- vuetable is a Vue.js component that will automatically request (JSON) data from the server and display them nicely in html table with swappable/extensible pagination component.
MIT License
1.83k stars 303 forks source link

Problem with my own DataTable component #130

Open minedun6 opened 7 years ago

minedun6 commented 7 years ago

Inspired by your component, I decided to create my own component, using speciafically Bootstrap. The detailed problem is within this laracasts topic.

Pagination broke

ratiw commented 7 years ago

Sorry, youtube was blocked at the moment, so I can't see it. But your code does not really looks like vuetable code, so I can't immediately know.

Anyway, what is your retrieved data structure looks like? Specifically, does it have the pagination info?

minedun6 commented 7 years ago

It does the problem rests with the search functionality it does a proper search but then it gets stuck on the pagination where you were before doing the search. If you were on page 2 the data gets fetched but stays on page 2, the model.current stays on page 2.

Le mer. 30 nov. 2016 14:05, Rati Wannapanop notifications@github.com a écrit :

Sorry, youtube was blocked at the moment, so I can't see it. But your code does not really looks like vuetable code, so I can't immediately know.

Anyway, what is your retrieved data structure looks like? Specifically, does it have the pagination info?

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/ratiw/vue-table/issues/130#issuecomment-263868543, or mute the thread https://github.com/notifications/unsubscribe-auth/AETRav0HWHsXENqkSZf-CsCvotE6TWe0ks5rDXSdgaJpZM4K_Vww .

ratiw commented 7 years ago

@minedun6 What is your actual data looks like?