andlabs / andlabs/libui

Questions about the table

Ouverte
#542 0 commentaires 0 réactions 0 personnes assignées Voir sur GitHub
Langage dominant
C
Étoiles
10.9k
Forks
612
Métriques de merge des PR
Aucune PR mergée en 30 j

Description

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.

Guide de contribution

Ouvrir le guide de contribution

Évaluation

Cette issue n'a pas encore été évaluée.

Recevez les nouvelles issues par e-mail

Un résumé court des issues GitHub adaptées aux débutants.