Column Resizing

Enable user-resizable columns and preserve widths through the same column storage model.

Column Resizing

Enable user-resizable columns and preserve widths through the same column storage model.

Source: usage.py::build_column_resizing_code().

table = (
    dmdt.DataTable(
        id="column-resizing-table",
        data=EMPLOYEES[:6],
        columns=COLUMN_CUSTOMIZATION_COLUMNS,
        paginationMode="none",
    )
    .update_layout(
        radius="lg",
        withTableBorder=True,
        withColumnBorders=True,
        storeColumnsKey="demo-column-resizing",
    )
    .update_columns(
        selector=["name", "team", "role", "location", "salary", "status"],
        resizable=True,
    )
)