Skip to content

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

Open
@passee

Description

@passee

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    P4A relatively minor issue that is not relevant to core functionsarea: material/paginatorfeatureThis issue represents a new feature or feature request rather than a bug or bug fix

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions