Hello all!
Firstly, I would just like to take the time to thank all the maintainers of Streamlit. It’s such an amazing product to use!
I recently started using the new ButtonColumn column_config that was released in v1.59. This is such an amazing addition.
Referring to this demo: https://button-column.streamlit.app/
I really like this idea of a menu/action that could allow you to switch pages.
"action": st.column_config.ButtonColumn(
"Column Header",
type="primary",
on_click=lambda: st.switch_page(), *# 👈*
key="my_key", *# Required for clicks*
),
})
So the handler would essentially inspect the “my_key” to inspect how to switch a page. Maybe populate query parameters?
However, when doing this, I see this warning: “Calling st.rerun() within a callback is a no-op.”
It makes sense, but I’m wondering if it would still be possible to switch pages using this new fancy button technology? Is it even possible at all?
Cheers!