Add an on_complete
or on_focus_leave
for st.data_editor
to debounce saving state
#8604
Open
2 tasks done
Labels
area:events
feature:st.data_editor
type:enhancement
Requests for feature enhancements or new features
Checklist
Summary
I'm looking for a trigger for
data_editor
that fires only when the user leaves focus of the table, rather than on every change to every cell. Kind of like a debounce to the table.Why?
I want to use the data editor in a multi page application and keep it persisted across pages in an intuitive way.
The naive thought would be
You cant do this because it causes the table to reset whenever you change a value. If I add a row, it then gets removed when I move to a new cell/click out.
There is a
key
andon_change
but that has the same issue, wherein I can do something likebut when you update
my_data
in session state, it breaks out the users focus from the data editing table.How?
What i'd love is a trigger
on_complete
oron_focus_remove
where the user actively chooses to click out of the table, then the trigger fires. In that world, my_update_state
would actually work perfectly.Additional Context
This relates to #7749 but i wanted to formalize the request
The text was updated successfully, but these errors were encountered: