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

Pagination #73

Open
wants to merge 10 commits into
base: main
Choose a base branch
from
Open

Conversation

vinicios-gomes
Copy link

@vinicios-gomes vinicios-gomes commented Feb 18, 2024

To add pagination, was needs change how to app behave.
Instead of render all pages, to get a better performance and improve ux, only one page is rendered on screen.

OLD
image

New
image

To add custom pagination component, use slot named pagination.

Have 3 important props:

Prop Description
currentPage Represent a index of current page. Default value is 0
pages Represent total of pages available
onPageChange Method capable of modifying the page

Copy link

welcome bot commented Feb 18, 2024

Thanks for opening your first pull request in this repository! ✌️

@vinicios-gomes vinicios-gomes changed the title Feat/pagination Pagination Feb 18, 2024
Signed-off-by: Vinicios Gomes <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant