andlabs / andlabs/libui

Questions about the table

Đang mở
#542 0 bình luận 0 reaction 0 người được giao Xem trên GitHub
Ngôn ngữ chính
C
Star
10.9k
Fork
612
Chỉ số merge pull request
Không có pull request nào được merge trong 30 ngày

Mô tả

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.

Hướng dẫn đóng góp

Mở hướng dẫn đóng góp

Đánh giá

Issue này chưa được đánh giá.

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.