feat(cdk/table): Possibility to add custom context to each row cell
- Lingua principale
- TypeScript
- Stelle
- 25k
- Fork
- 6.8k
- Merge medio
- 1g 8h
- PR unite (30g)
- 91
Descrizione
### Feature Description
Currently, the only context passed to the cell is: count, first, last, even, odd. However, this only works properly without pagination. If the table has pagination, we're stuck with these basic variables that are only relative to the page in display and not relative to the whole dataset being used, under the hood.
I'd would suggest giving the possibility to customize this behaviour via an optional method that is called when you run "_updateRowIndexContext". This new optional method would receive the context object that you currently have and expand on it according to what each project requires.
### Use Case
_No response_
Guida per i contributori
Apri la guida per i contributori
Direzione di ricerca
Inizia individuando l'implementazione della tabella Angular CDK che contiene _updateRowIndexContext e leggi come viene costruito il contesto corrente per count, first, last, even e odd. Determina l'API di personalizzazione opzionale e aggiungi la copertura per le righe paginate; il lavoro è completato quando i progetti possono estendere il contesto con valori relativi al dataset senza compromettere il contesto esistente.
Scritto dal modello di indicizzazione a partire dal testo della issue.
Valutazione
- Stack tecnologico
- 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
- 42/100