feat(COMPONENT): Add Possibility to stop Page Change on Paginator #30302
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
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 orevent.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.
The text was updated successfully, but these errors were encountered: