[Feature] Keep sorting order after changing row information

Aperta
#5,792 0 commenti 0 reazioni 0 assegnatari Vedi su GitHub

I maintainer di solito rispondono entro 1 giorno

Nessuno ha ancora preso questa issue.

Valutazione

Difficoltà
5/5
Tempo stimato
Più di una settimana
Idoneità per principianti
35/100
Tipo di issue
Funzionalità
Chiarezza
Abbastanza chiara
Stato di attività
Ferma
Stack tecnologico
typescript
Ambito
frontend

Direzione di ricerca

Inizia leggendo l’entry point getSortedRowModel menzionato nell’issue e traccia come potrebbero essere identificate e posizionate le righe modificate. Definisci il parametro table e il comportamento di ordinamento per le righe cambiate, preservando il comportamento attuale quando non vengono fornite righe cambiate; il lavoro è completato quando l’esempio mantiene la riga modificata nella sua posizione originale e le righe non modificate conservano l’ordinamento normale.

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

Descrizione

I would like to discuss a new feature to keep the table with the same sorting data on screen after the user has changed the visible row information.
As it is, if you sort the column "numbers" as ASC:

numbers
1
2
6
10

and then change the value "2" to "8", for example, the table will refresh like this:

numbers
1
6
8
10

But, what I want is to keep it like it were with the new value:

numbers
1
8
6
10

A possible solution would be to implement a new parameter into the table to store the changed rows and a new function in getSortedRowModel where, before you return the sortedData, you would get these rows and place them in their original position.

The user would need to provide the table with the changed rows in order to use the feature, otherwise it would behave as usual.

Lingua principale
TypeScript
Stelle
28.6k
Fork
3.6k
Merge medio
5h 55m
PR unite (30g)
3

Preparare l'ambiente

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di TanStack/table

Tutte le issue di TanStack/table

Issue simili

Altre issue su TypeScript

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.