feat(COMPONENT): Add Possibility to stop Page Change on Paginator
- Langage dominant
- TypeScript
- Étoiles
- 25k
- Forks
- 6.8k
- Merge moyen
- 1 j 8 h
- PR mergées (30 j)
- 91
Description
### 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.
Guide de contribution
Ouvrir le guide de contribution
Piste de recherche
Commencez par reproduire le comportement du paginator dans le StackBlitz lié et suivez le moment où le PageEvent est émis par rapport au changement de page. Déterminez comment une interception précoce doit signaler l’annulation, puis vérifiez qu’une navigation confirmée change toujours de page et émet l’événement comme prévu.
Rédigé par le modèle d'indexation à partir du texte de l'issue.
Évaluation
- Stack technique
- angular, typescript
- Domaine
- frontend
- Type d'issue
- Fonctionnalité
- Difficulté
- 4/5
- Temps estimé
- 3-5 jours
- Activité
- À l'abandon
- Clarté
- Plutôt claire
- Accessibilité débutants
- 35/100