Angular Material tabs -Conditionally Prevent Tab switching
- Langage dominant
- TypeScript
- Étoiles
- 25k
- Forks
- 6.8k
- Merge moyen
- 1 j 8 h
- PR mergées (30 j)
- 91
Description
#### Feature Description
Right now I could not find a way to prevent the tab from switching.
#### Use Case
If you have a form inside the tab and want to let users know that they have unsaved changes in the form. If they say they want to stay on the tab and not switch I want to cancel the call to switch tabs.
Thank you
Guide de contribution
Ouvrir le guide de contribution
Piste de recherche
Commencez par examiner l’implémentation de Angular Material tabs et son comportement actuel lors du changement d’onglet. Définissez comment un consumer pourrait annuler un changement lorsqu’un formulaire contient des modifications non enregistrées, puis ajoutez la couverture correspondant au comportement documenté.
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é
- 5/5
- Temps estimé
- Plus d'une semaine
- Activité
- À l'abandon
- Clarté
- À clarifier
- Accessibilité débutants
- 25/100