From 20bf5aba7624add06e19667faa322ba113fe11ab Mon Sep 17 00:00:00 2001 From: gac-maloja Date: Tue, 15 Nov 2022 17:42:11 +0100 Subject: [PATCH] pass through kwargs --- stand/widgets/aggrid.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/stand/widgets/aggrid.py b/stand/widgets/aggrid.py index 022bd84..c889616 100644 --- a/stand/widgets/aggrid.py +++ b/stand/widgets/aggrid.py @@ -1,7 +1,7 @@ from st_aggrid import AgGrid, GridOptionsBuilder -def aggrid(df, reload_data=False, height="auto", pagination=True, key=None): +def aggrid(df, reload_data=False, height="auto", pagination=True, key=None, **kwargs): df = df[::-1] # display in reversed chronological order gob = GridOptionsBuilder.from_dataframe( @@ -26,7 +26,8 @@ def aggrid(df, reload_data=False, height="auto", pagination=True, key=None): theme="streamlit", fit_columns_on_grid_load=True, reload_data=reload_data, - key=make_key(key, df, auto_height, pagination) + key=make_key(key, df, auto_height, pagination), + **kwargs ) df = response.get("data", df)