andlabs / ui

Platform-native GUI library for Go.
Other
8.33k stars 651 forks source link

table reload #333

Closed BOPsemi closed 5 years ago

BOPsemi commented 5 years ago

I would like to reload table view after data update, do you have any idea to do that ? I had already tried to do that by hide()->show(), but this one didn't work

bcampbell commented 5 years ago

You need to call RowInserted(), RowChanged() and RowDeleted() on the TableModel to tell it about each change you make to the data. There's nothing at the moment to do any sort of bulk update or to replace the data en mass... (the underlying libui code doesn't support this either).

andlabs commented 5 years ago

The problem is that GTK+ does not support this. It's certainly possible on Windows and macOS. (We could probably fake it with GTK+, but I don't know how well that will perform in practice.)

BOPsemi commented 5 years ago

Hello All, Thanks for your advice !!