You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Code works fine in 2.3 but not in 3 .. can you theme to the config file in V3?
ValueError: light is not valid. Available options: {'STREAMLIT': <AgGridTheme.STREAMLIT: 'streamlit'>, 'ALPINE': <AgGridTheme.ALPINE: 'alpine'>, 'BALHAM': <AgGridTheme.BALHAM: 'balham'>, 'MATERIAL': <AgGridTheme.MATERIAL: 'material'>}
File "C:\Users\sstapinski\pollen\lib\site-packages\st_aggrid__init.py", line 295, in AgGrid
raise ValueError(f"{theme} is not valid. Available options: {AgGridTheme.members__}")
streamlit-aggrid==0.3.3
import streamlit as st
import pandas as pd
import numpy as np
from st_aggrid import AgGrid, GridOptionsBuilder
df = pd.DataFrame(
np.random.randint(0, 100, 50).reshape(-1, 5),
index=range(10),
columns=list("abcde"),
)
available_themes = ["streamlit", "light", "dark", "blue", "fresh", "material"]
selected_theme = st.selectbox("Theme", available_themes)
gb = GridOptionsBuilder.from_dataframe(df)
if st.checkbox('Pre-select rows 4 and 6 when loading.'):
gb.configure_selection('multiple', pre_selected_rows=[3,5])
response = AgGrid(
df,
editable=True,
gridOptions=gb.build(),
data_return_mode="filtered_and_sorted",
update_mode="no_update",
fit_columns_on_grid_load=True,
theme=selected_theme
)
The text was updated successfully, but these errors were encountered:
Code works fine in 2.3 but not in 3 .. can you theme to the config file in V3?
ValueError: light is not valid. Available options: {'STREAMLIT': <AgGridTheme.STREAMLIT: 'streamlit'>, 'ALPINE': <AgGridTheme.ALPINE: 'alpine'>, 'BALHAM': <AgGridTheme.BALHAM: 'balham'>, 'MATERIAL': <AgGridTheme.MATERIAL: 'material'>}
File "C:\Users\sstapinski\pollen\lib\site-packages\st_aggrid__init.py", line 295, in AgGrid
raise ValueError(f"{theme} is not valid. Available options: {AgGridTheme.members__}")
streamlit-aggrid==0.3.3
The text was updated successfully, but these errors were encountered: