angular / angular/components

[Table] Multiple footers/headers with different data

Aperta
#12,287 11 commenti 17 reazioni 0 assegnatari Vedi su GitHub
area: cdk/table feature P5
Lingua principale
TypeScript
Stelle
25k
Fork
6.8k
Merge medio
1g 8h
PR unite (30g)
91

Descrizione

#### 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?

Guida per i contributori

Apri la guida per i contributori

Direzione di ricerca

Inizia riproducendo il comportamento nell’esempio StackBlitz collegato e leggendo le definizioni coinvolte dell’intestazione e del piè di pagina della tabella di Angular Material. Il lavoro è completato quando più righe di intestazione o piè di pagina possono riutilizzare le stesse colonne fornendo dati di cella diversi, e l’esempio esistente dimostra questo comportamento.

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

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.