andlabs / andlabs/libui

Questions about the table

Aperta
#542 0 commenti 0 reazioni 0 assegnatari Vedi su GitHub
Lingua principale
C
Stelle
10.9k
Fork
612
Metriche di merge delle PR
Nessuna PR unita negli ultimi 30g

Descrizione

Hi there,

I want to use the Table component as the front end of the remote file manager. When listing another directory, my current implementation is to delete each file entry row in the data source and call uiTableModelRowDeleted to clean up the entry at the same time. When the new file list data is obtained, call uiTableModelRowInserted to insert the new data.

I have two questions:

1. Is there any way to refresh the entire table at once instead of calling uiTableModelRowDeleted (or uiTableModelRowInserted) for each entry in a loop?
2. If there are a large number of entries in the current table, and call uiTableModelRowDeleted for each entry in uiQueueMain, when will I know that this process will end? In my implementation, if the data source gets new data and calls uiTableModelRowInserted at this time, the exception "Index out of bounds" may be thrown.

Thanks.

Guida per i contributori

Apri la guida per i contributori

Valutazione

Questa issue non è ancora stata valutata.

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.