feat(stepper): Make `CdkStepper` generic to support extended CdkStep
- Lingua principale
- TypeScript
- Stelle
- 25k
- Fork
- 6.8k
- Merge medio
- 1g 8h
- PR unite (30g)
- 91
Descrizione
#### Feature Description
Currently, when I want to use `CdkStepper` with a custom class for a step (extension of a class `CdkStep`, e.g. `MyStep extends CdkStep`), I am not able to as `CdkStepper` is not generic and is fixed to `CdkStep` class for a step. I would like to make `CdkStepper` generic, so I can use `CdkStepper`.
#### Use Case
Let's say I have a class`OnboardingStepComponent extends CdkStep` which has the property `specialLabel`. I want to use the CdkStepper with this specialized step component.
Let me know if this sounds reasonable, if so, I can work on this.
Guida per i contributori
Apri la guida per i contributori
Direzione di ricerca
Inizia individuando i punti di ingresso CdkStepper e CdkStep nel repository dei componenti Angular e verifica come viene attualmente fissato il tipo di step. Conferma il comportamento desiderato con un MyStep o OnboardingStepComponent specializzato, quindi aggiungi la copertura dei test che dimostri che CdkStepper supporta uno step esteso con specialLabel.
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
- Abbastanza chiara
- Idoneità per principianti
- 35/100