-
|
Hi, firstly I wanted to say gpui-component is really impressive. I'm making a structured log viewer and I tried the Table widget with a million rows and it was fast (virtualised by default!) and easy, and looks great, which is more than I can say for many other GUI frameworks. I even managed to get a button in a row pretty easily. However, I can't figure out how to add an I found this example but it too just does a |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 7 replies
-
|
And you want add a new row to table. You just need to add new items into the somewhere(self.data) that provides impl TableDelegate for MyTableDelegate {
fn columns_count(&self, _: &App) -> usize {
self.columns.len()
}
fn rows_count(&self, _: &App) -> usize {
self.data.len()
}https://longbridge.github.io/gpui-component/docs/components/table |
Beta Was this translation helpful? Give feedback.
I have made the change for this API.
#1712