[Table] Remove requirement for a header or data row template
- Vorherrschende Sprache
- TypeScript
- Sterne
- 25k
- Forks
- 6.8k
- Ø Merge
- 1 T. 8 Std.
- Gemergte PRs (30 T.)
- 91
Beschreibung
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)
Beitragsleitfaden
Rechercherichtung
Beginne mit der Suche in der Tabellenimplementierung und den Tests von Angular CDK nach der Verarbeitung der Templates `cdk-header-row` und `cdk-row`. Überprüfe das Verhalten bei einer Tabelle ohne Header, einer Tabelle ohne Datenzeilen-Template und einer Tabelle nur mit Header; erledigt ist die Aufgabe, wenn ausgelassene Templates nicht eingefügt werden, während unterstützte Zeilen weiterhin gerendert werden.
Vom Indexierungsmodell aus dem Issue-Text verfasst.
Bewertung
- Tech-Stack
- angular, typescript
- Bereich
- frontend
- Issue-Typ
- Feature
- Schwierigkeit
- 3/5
- Geschätzter Aufwand
- 1-2 Tage
- Aktivitätsstatus
- Veraltet
- Klarheit
- Größtenteils klar
- Anfängerfreundlichkeit
- 42/100