Skip to content

docs(VDataTableServer): fixes pagination examples#20856

Merged
MajesticPotatoe merged 4 commits intovuetifyjs:masterfrom
Nioron07:v-data-table-server-example-pagination-fix
Jan 20, 2025
Merged

docs(VDataTableServer): fixes pagination examples#20856
MajesticPotatoe merged 4 commits intovuetifyjs:masterfrom
Nioron07:v-data-table-server-example-pagination-fix

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
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