feat(COMPONENT): Add Possibility to stop Page Change on Paginator
- Vorherrschende Sprache
- TypeScript
- Sterne
- 25k
- Forks
- 6.8k
- Ø Merge
- 1 T. 8 Std.
- Gemergte PRs (30 T.)
- 91
Beschreibung
### 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.
Beitragsleitfaden
Rechercherichtung
Beginne damit, das Verhalten des Paginators im verlinkten StackBlitz zu reproduzieren, und verfolge, wann das PageEvent im Verhältnis zum Seitenwechsel ausgegeben wird. Ermittle, wie eine frühzeitige Abfangung eine Abbruchsignalisierung auslösen sollte, und überprüfe anschließend, dass eine bestätigte Navigation die Seite weiterhin ändert und das Event wie erwartet ausgibt.
Vom Indexierungsmodell aus dem Issue-Text verfasst.
Bewertung
- Tech-Stack
- angular, typescript
- Bereich
- frontend
- Issue-Typ
- Feature
- Schwierigkeit
- 4/5
- Geschätzter Aufwand
- 3-5 Tage
- Aktivitätsstatus
- Veraltet
- Klarheit
- Größtenteils klar
- Anfängerfreundlichkeit
- 35/100