moved columns settings into the right spot

This commit is contained in:
2022-05-22 22:34:58 +02:00
parent cc376b18c3
commit 31c8d34b15

View File

@ -56,7 +56,15 @@ with col1:
gob = GridOptionsBuilder.from_dataframe(df) gob = GridOptionsBuilder.from_dataframe(
df,
editable=True,
filterable=True,
groupable=True,
resizable=True,
sortable=True
)
gob.configure_auto_height(True) gob.configure_auto_height(True)
go = gob.build() go = gob.build()
@ -66,11 +74,6 @@ response = AgGrid(
df[::-1], df[::-1],
go, go,
filter=True,
editable=True,
sortable=True,
resizable=True,
theme="streamlit", theme="streamlit",
fit_columns_on_grid_load=True, fit_columns_on_grid_load=True,