Skip to content

Commit

Permalink
Make pagination visible on both themes
Browse files Browse the repository at this point in the history
  • Loading branch information
huong-li-nguyen committed Mar 5, 2025
1 parent e7c0843 commit 0f8cc36
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
4 changes: 3 additions & 1 deletion vizro-core/examples/scratch_dev/app.py
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,8 @@ def my_custom_aggrid(chosen_columns: list[str], data_frame=None):
id="custom_ag_grid",
title="Custom Dash AgGrid",
figure=my_custom_aggrid(
data_frame=df, chosen_columns=["country", "continent", "lifeExp", "pop", "gdpPercap"]
data_frame=df,
chosen_columns=["country", "continent", "lifeExp", "pop", "gdpPercap"],
),
),
],
Expand All @@ -59,6 +60,7 @@ def my_custom_aggrid(chosen_columns: list[str], data_frame=None):
title="Custom Dash AgGrid",
figure=dash_ag_grid(
data_frame=df,
dashGridOptions={"pagination": True},
),
),
],
Expand Down
2 changes: 2 additions & 0 deletions vizro-core/src/vizro/static/css/aggrid.css
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,8 @@
--ag-header-column-resize-handle-color: var(--border-subtleAlpha02);
--ag-range-selection-border-color: transparent;
--ag-input-focus-border-color: transparent;
--ag-foreground-color: var(--text-primary);
--ag-secondary-foreground-color: var(--text-secondary);
}

/* Header ------- */
Expand Down

0 comments on commit 0f8cc36

Please sign in to comment.