Whether changes to tables on the page can be passed back to the database

I have deployed a project locally, and when I display the stored file information, I want to modify some properties of the storage and save the modified results back locally.
How do I do this, do I need to install some other streamlit plugin

My AgGrid table configuration is as follows:
def config_aggrid(
df: pd.DataFrame,
columns: Dict[Tuple[str, str], Dict] = {},
selection_mode: Literal[“single”, “multiple”, “disabled”] = “single”,
use_checkbox: bool = False,
) → GridOptionsBuilder:
gb = GridOptionsBuilder.from_dataframe(df)
gb.configure_column(“No”, width=150)
gb.configure_column(“file_name”, width=1000)
for (col, header), kw in columns.items():
gb.configure_column(col, header, wrapHeaderText=True, **kw)
gb.configure_side_bar(filters_panel=True)
gb.configure_pagination(enabled=True,paginationAutoPageSize=False,paginationPageSize=30)
gb.configure_selection(
selection_mode=‘multiple’,
use_checkbox=True,
header_checkbox=True,
header_checkbox_filtered_only= True,
rowMultiSelectWithClick=True
)
gb.configure_default_column(groupable=True, value=True, enableRowGroup=True, aggFunc=‘sum’, editable=True)
return gb


Streamlit = 1.27.2
Python = 3.10.9

This topic was automatically closed 180 days after the last reply. New replies are no longer allowed.