Row IDs
Use non-standard or composite record identifiers for selection, expansion, and drag state.
Row IDs
Use non-standard or composite record identifiers for selection, expansion, and drag state.
Source: usage.py::build_row_ids_code().
table = (
dmdt.DataTable(
id="row-ids-table",
data=ROW_IDS_RECORDS,
columns=[
{"accessor": "name", "width": 200},
{"accessor": "team", "width": 140},
{"accessor": "location", "title": "City", "width": 140},
{"accessor": "status", "presentation": "badge", "badgeColorAccessor": "statusColor"},
],
paginationMode="none",
selectionTrigger="checkbox",
)
.update_rows(
idAccessor={"template": "{team}:{name}"},
)
.update_layout(radius="lg", withTableBorder=True)
)