-
-
Notifications
You must be signed in to change notification settings - Fork 32
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
Pagination change event not firing #170
Comments
I think that there is no event named |
I've just tried with @update:modelValue over @change and that seems to work. Following this, can we then remove the @change even from the documentation including the examples? It causes some confusion. To go back to my other question, am I using pagination correctly?
I haven't looked at the inner workings of the datatable, but for example if I give it 100 results and set it to 10 results per page on the control, it still just displays all of them, so I'm assuming i'm correct in paginating the data on the server? Cheers |
Hi @HDShabe , Documentation errors have been fixed. Thank you very much~ And pagination component, in general only need to use <ui-pagination v-model="page" :total="total" :page-size="pageSize"></ui-pagination>
|
Perfect, thanks for you support @elf-mouse, that's how I had it set up. Cheers. |
Development Relevant Information:
Hi,
I've got a few datatables which have pagination in them but i've never been able to get the @change event working on them. I saw this issue a while back (#144) and thought it would fix it but only just got around to trying to implement it and it doesn't seem to work still.
I can get around this with a watch:
As a side question, how was the pagination/datatable intended to be used? Currently I send the page number and results per page to the server and paginate there, just sending back the information for the current page.
Is this correct, or would the intended use to be send the entire dataset back and have the datatable work out what it wants to currently display from the full dataset?
Cheers
The text was updated successfully, but these errors were encountered: