Angular Mat Paginator: how to prevent page change or page size change?

Discussão em 'Angular' iniciado por bfredo123, Dezembro 17, 2024.

  1. bfredo123

    bfredo123 Guest

    It looks like MatPaginator only notifies once such a change has been made by the user (PageEvent events).

    Is there also a way to reject a page change, or a change on the page size?

    It might be useful if some edits have been done on the page, and that - if the user tries to go to the next page - we want to offer the user the option to stay on that page to avoid losing these changes.

    Many thanks!

    Continue reading...

Compartilhe esta Página