On Thursday, 10/15/2026, 14:38, Dominik Csapak <d.csapak@proxmox.com> wrote:
From : Dominik Csapak <d.csapak@proxmox.com>
Sent on : Thursday, 10/15/2026, 14:38
To : yew-devel@lists.proxmox.com
Subject : [PATCH yew-widget-toolkit v4 0/2] data table: auto widthreplaces the previous single patch[0]. It needs an upfront refactor so there is an additional patch now. changes from v3: * new patch: factor out the cell rendering loop of the table rows, so it can be reused for the sample records (for colspan) * cache the rendered sizers and only recalculate them when the relevant properties change, instead of on every render * move the debug assertion into the sizer calculation, so it also covers property updates, and fix it to allow exactly VIRTUAL_SCROLL_TRIGGER records * fix typos * improve comments Dominik Csapak (2): widget: data table: factor out cell rendering logic widget: data table: implement auto column sizing based on sample records src/widget/data_table/data_table.rs | 117 +++++++++++++++++++++++-- src/widget/data_table/header_widget.rs | 46 ++++++++++ src/widget/data_table/mod.rs | 5 +- src/widget/data_table/rendered_cell.rs | 63 +++++++++++++ src/widget/data_table/row.rs | 66 +++++--------- 5 files changed, 247 insertions(+), 50 deletions(-) create mode 100644 src/widget/data_table/rendered_cell.rs -- 2.47.3