feat(COMPONENT): Add Possibility to stop Page Change on Paginator
- Lenguaje dominante
- TypeScript
- Estrellas
- 25k
- Forks
- 6.8k
- Merge medio
- 1 d 8 h
- PR fusionados (30 d)
- 91
Descripción
### 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](https://stackblitz.com/edit/pbfhnu68-qn7l5mng?file=src%2Fexample%2Ftable-pagination-example.html) that shows the problem.
Guía de contribución
Línea de trabajo
Empieza reproduciendo el comportamiento del paginador en el StackBlitz enlazado y rastrea cuándo se emite el PageEvent en relación con el cambio de página. Determina cómo debería indicar la cancelación una interceptación temprana y, después, verifica que una navegación confirmada siga cambiando la página y emita el evento como se espera.
Escrito por el modelo de indexación a partir del texto del issue.
Evaluación
- Stack tecnológico
- angular, typescript
- Área
- frontend
- Tipo de issue
- Nueva funcionalidad
- Dificultad
- 4/5
- Tiempo estimado
- 3-5 días
- Estado de actividad
- Estancado
- Claridad
- Bastante claro
- Aptitud para principiantes
- 35/100