angular / angular/components

[Table] Multiple footers/headers with different data

Offen
#12,287 11 Kommentare 17 Reaktionen 0 zugewiesene Personen Auf GitHub ansehen
area: cdk/table feature P5
Vorherrschende Sprache
TypeScript
Sterne
25k
Forks
6.8k
Ø Merge
1 T. 8 Std.
Gemergte PRs (30 T.)
91

Beschreibung

#### Bug, feature request, or proposal:
Feature Request

#### What is the expected behavior?
To be able to make a second footer/header in which I can use the same columns but different data for the cells then the other footer/header

#### What is the current behavior?
Currently you can have multiple mat-footer-rows on a table but it has to have matColumnDefs for each one. IE let's say I have a second footer row that I want to go into the same columns that are setup but with different data. The only way I can see to do this is to make a new array of columns, send that into that footerDef and make the matColumnDefs for those.

#### What are the steps to reproduce?
https://stackblitz.com/edit/angular-tcdbaj

#### What is the use-case or motivation for changing an existing behavior?
The use case is to have multiple footers or headers that have different data, about that column

#### Which versions of Angular, Material, OS, TypeScript, browsers are affected?
Angular 6.0.9, Newest Material, etc

#### Is there anything else we should know?

Beitragsleitfaden

Beitragsleitfaden öffnen

Rechercherichtung

Beginne damit, das Verhalten im verlinkten StackBlitz-Beispiel nachzustellen und die beteiligten Definitionen für Tabellenkopf und -fußzeile von Angular Material zu lesen. Die Aufgabe ist abgeschlossen, wenn mehrere Kopf- oder Fußzeilen dieselben Spalten wiederverwenden und dabei unterschiedliche Zellendaten bereitstellen können und das bestehende Beispiel dieses Verhalten demonstriert.

Vom Indexierungsmodell aus dem Issue-Text verfasst.

Bewertung

Tech-Stack
angular, typescript
Bereich
frontend
Issue-Typ
Feature
Schwierigkeit
4/5
Geschätzter Aufwand
3-5 Tage
Aktivitätsstatus
Veraltet
Klarheit
Größtenteils klar
Anfängerfreundlichkeit
35/100

Neue Issues direkt in Ihr Postfach

Eine kurze Übersicht über anfängerfreundliche GitHub-Issues.