angular / angular/components

Add `completed` event for stepper / steps

Aperta
#12,908 18 commenti 6 reazioni 0 assegnatari Vedi su GitHub
area: cdk/stepper area: material/stepper feature good first issue help wanted P4
Lingua principale
TypeScript
Stelle
25k
Fork
6.8k
Merge medio
1g 8h
PR unite (30g)
91

Descrizione

#### Bug, feature request, or proposal:
Proposal

#### What is the expected behavior?
Optionally allow the consumer define if it wants to auto-advance an step when it completes (by using [completed] step property)

#### What is the current behavior?
Nothing happens as soon the step is marked as completed

#### What is the use-case or motivation for changing an existing behavior?
Use Observable based state such as NgRx stores, and in a more functional way allow set the stepper navigation based on state, now I have to subscribe to store and call navigation via an stepper instance in order to handle steps advance, too imperatively and also results in a awful timing issues because when stepper.next() is called and [completed] property update is on its way nothing happens.

#### Is there anything else we should know?
I'm willing to implement such feature. No breaking changes would be introduced.

Guida per i contributori

Apri la guida per i contributori

Direzione di ricerca

Parti dal punto di ingresso del componente stepper/steps di Angular Material e verifica come vengono gestite la proprietà esistente relativa agli step completati e la navigazione. Chiarisci il contratto opzionale di avanzamento automatico, la sua interazione con gli aggiornamenti dello stato e la copertura di regressione necessaria; il lavoro è completato quando il comportamento è opt-in e non interrompe la navigazione esistente.

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

Valutazione

Stack tecnologico
angular, typescript
Ambito
frontend
Tipo di issue
Funzionalità
Difficoltà
4/5
Tempo stimato
3-5 giorni
Stato di attività
Ferma
Chiarezza
Da chiarire
Idoneità per principianti
35/100

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.