Skip to content

Commit 3174fd8

Browse files
committed
Add max height to make table scrowlable and freeze last row
1 parent cf2be83 commit 3174fd8

File tree

1 file changed

+9
-1
lines changed

1 file changed

+9
-1
lines changed

panel/app.py

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -88,6 +88,9 @@ def sensitivity_indices_table(si, inputs):
8888
show_index=False,
8989
formatters=formatters,
9090
theme="bulma",
91+
frozen_rows=[-1],
92+
# page_size=5,
93+
# pagination='local',
9194
)
9295
widget.style.apply(
9396
lambda x: ["font-style: italic"] * 3, axis=1, subset=df.index[-1]
@@ -349,7 +352,12 @@ def tableau_states(res, states):
349352
),
350353
pn.Spacer(height=50),
351354
pn.pane.Markdown(si_description, styles={"color": "#0072b5"}),
352-
pn.Column(interactive_sensitivity_indices_table, width=400),
355+
pn.Column(
356+
interactive_sensitivity_indices_table,
357+
width=400,
358+
max_height=300,
359+
height_policy="min",
360+
),
353361
),
354362
pn.Column(
355363
pn.pane.Markdown(table_description, styles={"color": "#0072b5"}),

0 commit comments

Comments
 (0)