Reuse the demo code, just only add minHeight = 300 in update_layout, the data row is scale-up height.
from dash import Dash
import dash_mantine_components as dmc
import dash_mantine_datatable as dmdt
app = Dash()
table = dmdt.DataTable(
id="employees",
data=[
{"id": 1, "name": "Avery Stone", "team": "Platform", "status": "On Track"},
{"id": 2, "name": "Mina Patel", "team": "Growth", "status": "Planning"},
],
columns=[
{"accessor": "name", "sortable": True},
{"accessor": "team", "sortable": True},
{"accessor": "status", "presentation": "badge"},
],
).update_columns(
selector=["name", "team", "status"],
resizable=True,
).update_layout(radius="sm", withTableBorder=True, striped=True,
minHeight=300)
app.layout = dmc.MantineProvider(
dmc.Container(
[table],
fluid=True
)
)
if __name__ == "__main__":
app.run(debug=True)
Reuse the demo code, just only add minHeight = 300 in update_layout, the data row is scale-up height.