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(COMPONENT): Add Possibility to stop Page Change on Paginator #30302

Open
passee opened this issue Jan 10, 2025 · 0 comments
Open

feat(COMPONENT): Add Possibility to stop Page Change on Paginator #30302

passee opened this issue Jan 10, 2025 · 0 comments
Labels
feature This issue represents a new feature or feature request rather than a bug or bug fix needs triage This issue needs to be triaged by the team

Comments

@passee
Copy link

passee commented Jan 10, 2025

Feature Description

Currently when you press any button on the paginator the page is changed and the PageEvent is emitted afterwards.

It would be great to be able to intercept the pageEvent before it is done and maybe call something like event.stopPropagation() and or event.preventDefault()

Use Case

There is no way of stopping the page change for example if you would want to implement a dialog which confirms if the user wants to lose their changes made on the current page. (Especially when the paginator is not connected to the table and the pagination is used for the backend)
Here is a stackblitz that shows the problem.

@passee passee added feature This issue represents a new feature or feature request rather than a bug or bug fix needs triage This issue needs to be triaged by the team labels Jan 10, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature This issue represents a new feature or feature request rather than a bug or bug fix needs triage This issue needs to be triaged by the team
Projects
None yet
Development

No branches or pull requests

1 participant