Fixed-height Scrolling
Constrain the table body to a fixed viewport while keeping the header and pagination stable.
Fixed-height Scrolling
Constrain the table body to a fixed viewport while keeping the header and pagination stable.
Source: usage.py::build_scrolling_code(height=300).
table = (
dmdt.DataTable(
id="scrolling-table",
data=SCROLLING_RECORDS,
columns=SCROLLING_COLUMNS,
paginationMode="none",
)
.update_layout(
radius="lg",
withTableBorder=True,
height=300,
)
)