--- a/application/main.c Sun Sep 28 20:09:08 2025 +0200 +++ b/application/main.c Mon Sep 29 20:16:07 2025 +0200 @@ -570,6 +570,11 @@ ui_linkbutton_value_set(doc->link, label, uri); } +static UiBool list_save(UiList *list, int row, int col, UiCellValue value, void *userdata) { + printf("list new value at [%d, %d]: %s\n", row, col, value.string); + return FALSE; +} + void application_startup(UiEvent *event, void *data) { // global list UiContext *global = ui_global_context(); @@ -658,7 +663,7 @@ UiModel *model = ui_model(obj->ctx, UI_ICON_TEXT, "col1", UI_INTEGER, "col2", UI_ICON, "col3", UI_ICON_TEXT, "col4", UI_INTEGER, "col5", UI_STRING_EDITABLE, "edit6", UI_STRING_EDITABLE, "edit7", -1); model->columnsize[0] = -1; ui_table(obj, .model = model, .list = doc->list2, .colspan = 2, .fill = TRUE, .contextmenu = menubuilder, .multiselection = TRUE, .fill = TRUE, - .getvalue = table_getvalue, .getstyle = table_getstyle, + .getvalue = table_getvalue, .getstyle = table_getstyle, .onsave = list_save, .onactivate = action_table_activate, .onactivatedata = "activate", .onselection = action_table_activate, .onselectiondata = "selection"); ui_hbox(obj, .fill = FALSE) {