pass through kwargs
This commit is contained in:
@ -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)
|
||||
|
Reference in New Issue
Block a user