andlabs / andlabs/libui

Questions about the table

Offen
#542 0 Kommentare 0 Reaktionen 0 zugewiesene Personen Auf GitHub ansehen
Vorherrschende Sprache
C
Sterne
10.9k
Forks
612
PR-Merge-Kennzahlen
Keine gemergten PRs in 30 T.

Beschreibung

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.

Beitragsleitfaden

Beitragsleitfaden öffnen

Bewertung

Dieses Issue wurde noch nicht bewertet.

Neue Issues direkt in Ihr Postfach

Eine kurze Übersicht über anfängerfreundliche GitHub-Issues.