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

feat(Table): add pagination feature #2654

Draft
wants to merge 5 commits into
base: v3
Choose a base branch
from
Draft

Conversation

blouflashdb
Copy link

@blouflashdb blouflashdb commented Nov 15, 2024

πŸ”— Linked issue

#2441

❓ Type of change

  • πŸ“– Documentation (updates to the documentation or readme)
  • 🐞 Bug fix (a non-breaking change that fixes an issue)
  • πŸ‘Œ Enhancement (improving an existing functionality)
  • ✨ New feature (a non-breaking change that adds functionality)
  • 🧹 Chore (updates to the build process or auxiliary tools and libraries)
  • ⚠️ Breaking change (fix or feature that would cause existing functionality to change)

πŸ“š Description

I've added pagination to the Table component by integrating the existing pagination component we have. This should help users navigate through large datasets more easily by breaking the data into pages.

I updated the playground table page so it shows the pagination.

Since I am bad at html and css I would like to get some help here so it fits well into the Table component.

I will update the documentation aswell once the html and css is done.

πŸ“ Checklist

  • I have linked an issue or discussion.
  • I have updated the documentation accordingly.

@blouflashdb
Copy link
Author

@benjamincanac if you have time I would appreciate it when you can provide some html and base styling for this new feature.

@benjamincanac benjamincanac added the v3 #1289 label Nov 15, 2024
Comment on lines 282 to 286
<slot name="pagination">
<div :class="ui.pagination({ class: [props.ui?.pagination] })">
<UPagination v-if="tableApi.getPageCount() > 1" v-model:page="page" :items-per-page="1" :total="tableApi.getPageCount()" />
</div>
</slot>
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Not sure about this, I would not include the UPagination component inside the Table to let users handle it the way they want and put it wherever they want I guess.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
v3 #1289
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants