Comcast / Comcast/react-data-grid

Row groups of size 1 should have the option to be shown in non grouped format

Aperta
#2,863 0 commenti 3 reazioni 0 assegnatari Vedi su GitHub
Lingua principale
TypeScript
Stelle
7.7k
Fork
2.2k
Merge medio
1g 2h
PR unite (30g)
33

Descrizione

## Use case

I have a set of rows where some rows have a group size of 1. I would like the option to show these rows in the non grouped format

## Proposed solution

I am not sure of an easy way of doing this but a couple options could be:
1. An attribute/property on the `DataGrid` component that tells the grid to not group rows that have a group size of 1.
2. Add some sort of flag to the `rowGrouper` return object that tells the grid to not group rows with group size of 1.

Guida per i contributori

Apri la guida per i contributori

Direzione di ricerca

Inizia tracciando il comportamento di raggruppamento delle righe del componente DataGrid e l'API rowGrouper. Confronta gli approcci proposti basati sulla proprietà di DataGrid e sul flag rowGrouper, quindi individua i test di raggruppamento o i punti di ingresso esistenti che richiederebbero una copertura. Il lavoro è completato quando un'opzione documentata e concordata consente di eseguire il rendering dei gruppi di dimensione 1 in forma non raggruppata senza modificare i gruppi più grandi.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Valutazione

Stack tecnologico
react, typescript
Ambito
frontend
Tipo di issue
Funzionalità
Difficoltà
5/5
Tempo stimato
Più di una settimana
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.