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
I have searched the existing issues for similar feature requests.
I added a descriptive title and summary to this issue.
Summary
Suppose a situation where I want to allow the user to insert data but not to delete any existing data or vice versa, in that case, the num_rows="dynamic" is not sufficient. The developer should have more granular control over how the data can be modified.
Why?
I had a situation where the data displayed was taken from database, in this case, I wanted to allow deleting existing rows if those are not needed anymore, but restrict making any manual inserts by typing in values directly. The insertion was to be made using st.selectbox to keep values categorical and avoid human typing mistakes. I was stuck in the situation and couldn't find a solution.
How?
The best can be done by deprecating the num_rows = Literal["fixed", "dynamic]parameter and introduce two different boolean parametersallow_insert=Falseandallow_delete=False```.
Yup, that sounds like a good idea and I think I've also heard this somewhere in the past. We don't have any concrete plan for this right now but will prioritize if it gets more upvotes!
Checklist
Summary
Suppose a situation where I want to allow the user to insert data but not to delete any existing data or vice versa, in that case, the
num_rows="dynamic"
is not sufficient. The developer should have more granular control over how the data can be modified.Why?
I had a situation where the data displayed was taken from database, in this case, I wanted to allow deleting existing rows if those are not needed anymore, but restrict making any manual inserts by typing in values directly. The insertion was to be made using
st.selectbox
to keep values categorical and avoid human typing mistakes. I was stuck in the situation and couldn't find a solution.How?
The best can be done by deprecating the
num_rows
= Literal["fixed", "dynamic]parameter and introduce two different boolean parameters
allow_insert=Falseand
allow_delete=False```.Additional Context
Can be found Here as well.
The text was updated successfully, but these errors were encountered: