Hello
I’m using the following
edited_df = st.sidebar.data_editor(
df,
column_config={
“function_name”: st.column_config.SelectboxColumn(
“function”,
help=“Select functions”,
width=“small”,
options= getFunctionList(),
required=True,
),
“parameters”: st.column_config.TextColumn(
help=“parameters”,
width=“medium”,
disabled=False,
required=False,
),
},
hide_index=True,
num_rows=“dynamic”
)
The component is working well including deletion or add row function.
However, I would like to create additional buttons to “move up” and “move down” the Selected rows by the user (similar to the delete button provided by the component: the user selects some rows and they are removed).
I don’t know how have the list of selected rows and I don’t want to create an additional row (I know I can do that but it is not user friendly).
Any idea ?
Other possibility in terms of evolution can be have the capability to add additional buttons with their callback to the menu on top right of the df:
thanks in advance
JDD