[Table] Remove requirement for a header or data row template
- Lingua principale
- TypeScript
- Stelle
- 25k
- Fork
- 6.8k
- Merge medio
- 1g 8h
- PR unite (30g)
- 91
Descrizione
It's valid that tables may not want any header, or a table could *only* be a header. Support this use case by letting users avoid defining a `cdk-header-row` or `cdk-row` which means that they should not be inserted.
Motivation: A table footer row could be a single row composed of a single row without a header. If placed after a preceding table, it acts as a sticky footer. Works well for cases where the header should not affect the rows, e.g. a totals row
Note that this doesn't help in cases where a scrollbar appears on one container but not the other. This will cause misalignment on browsers that push content left to show a scrollbar rather than overlay it (e.g. safari)
Guida per i contributori
Apri la guida per i contributori
Direzione di ricerca
Inizia cercando nell’implementazione delle tabelle e nei test di Angular CDK la gestione dei template `cdk-header-row` e `cdk-row`. Verifica il comportamento di una tabella senza intestazione, di una tabella senza template per le righe di dati e di una tabella con la sola intestazione; il lavoro è completato quando i template omessi non vengono inseriti, mentre le righe supportate continuano a essere renderizzate.
Scritto dal modello di indicizzazione a partire dal testo della issue.
Valutazione
- Stack tecnologico
- angular, typescript
- Ambito
- frontend
- Tipo di issue
- Funzionalità
- Difficoltà
- 3/5
- Tempo stimato
- 1-2 giorni
- Stato di attività
- Ferma
- Chiarezza
- Abbastanza chiara
- Idoneità per principianti
- 42/100