Nested Tables

Use grouped rows and nested table structures for hierarchical datasets.

Nested Tables

Use grouped rows and nested table structures for hierarchical datasets.

Source: usage.py::build_nested_tables_code().

table = (
    dmdt.DataTable(
        id="nested-tables-table",
        data=NESTED_GROUPED_RECORDS,
        columns=NESTED_GROUPED_COLUMNS,
        paginationMode="none",
        group_by=["companyGroup", "departmentGroup"],
        group_aggregations=NESTED_GROUP_AGGREGATIONS,
    )
    .update_layout(radius="lg", withTableBorder=True, withColumnBorders=True, striped=True)
)