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

docs(VDataTableServer): fixes pagination examples #20856

Conversation

Nioron07
Copy link
Contributor

Description

When selecting the 'All' pagination setting, the table would display all rows except for the last one, which would be chopped off due to a minor issue in the pagination logic. I added a check to see if the 'end' variable was -1 and if so, set the end parameter of the slice to undefined so it returns the whole array of items. I wanted to make this change to ensure that if anyone used the pagination logic included in the examples as a reference for their own, this minor issue wouldn't slip through the cracks and cause problems.

@MajesticPotatoe MajesticPotatoe changed the title docs: fixes v-data-table-server example tables pagination docs(VDataTableServer): fixes pagination examples Jan 20, 2025
@MajesticPotatoe MajesticPotatoe merged commit 0f96321 into vuetifyjs:master Jan 20, 2025
10 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants