angular / angular/components

Angular Material tabs -Conditionally Prevent Tab switching

Aperta
#16,289 7 commenti 9 reazioni 0 assegnatari Vedi su GitHub
area: material/tabs feature needs: discussion P4
Lingua principale
TypeScript
Stelle
25k
Fork
6.8k
Merge medio
1g 8h
PR unite (30g)
91

Descrizione

#### 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

Guida per i contributori

Apri la guida per i contributori

Direzione di ricerca

Inizia esaminando l’implementazione di Angular Material tabs e il comportamento attuale durante il cambio di scheda. Definisci come un consumer può annullare un cambio quando un modulo contiene modifiche non salvate, quindi aggiungi la copertura per il comportamento documentato.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Valutazione

Stack tecnologico
angular, typescript
Ambito
frontend
Tipo di issue
Funzionalità
Difficoltà
5/5
Tempo stimato
Più di una settimana
Stato di attività
Ferma
Chiarezza
Da chiarire
Idoneità per principianti
25/100

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.