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

Implemented: Dxp pagination component(#322) #356

Merged
merged 8 commits into from
Jan 17, 2025

Conversation

R-Sourabh
Copy link
Contributor

@R-Sourabh R-Sourabh commented Jan 15, 2025

Related Issues

#322

Short Description and Why It's Useful

  • Introduced a reusable pagination component for managing navigation across paginated data.
  • The component dynamically calculates and displays visible page numbers based on the current page and total pages, which are passed as props.
  • Emits an updatePageIndex event with the updated page index to notify the parent component.
  • Provides controls for first, previous, next, and last page navigation, along with clear visual indicators for the currently selected page.

Screenshots of Visual Changes before/after (If There Are Any)

Screenshot from 2025-01-16 18-46-47
Screenshot from 2025-01-16 18-46-57
Screenshot from 2025-01-16 18-46-43

Is the changes contains any breaking change?

If there are any breaking change include those in the release notes file

  • Yes
  • No

Contribution and Currently Important Rules Acceptance

@R-Sourabh R-Sourabh changed the title #322 dxp pagination Implemented: Dxp pagination component(#322) Jan 15, 2025
src/components/DxpPagination.vue Outdated Show resolved Hide resolved
src/components/DxpPagination.vue Outdated Show resolved Hide resolved
src/components/DxpPagination.vue Outdated Show resolved Hide resolved
…rrentPage, and directly invoked updateCurrentPage from the template(hotwax#322)

- Renamed the emitter from 'updatePageCount' to 'updatePageIndex' and the function name from 'getDisplayedPageCounts' to 'getDisplayedPageIndexes'.
@ymaheshwari1 ymaheshwari1 merged commit d2a96a6 into hotwax:main Jan 17, 2025
2 checks passed
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.

2 participants