![]() ![]() I insert a unique after each chat message and intend to use this as an anchor to scroll down to. St.session_state.chat += f' \nB: ) Īnd here’s how I increment the dummy variable in Python: st.session_state += 1 ![]() If you want to scroll to the bottom the page, here’s a modification of my previous answer: import streamlit as st The first thing you’ll need to know is that you need to use… Unfortunately, I’m not aware of a Streamlit version which passes the widget keys forward as an HTML ID that can be used on the front end, so the selection process ends up being a little more convoluted than selecting by ID. If you are trying to selectively choose a particular text area to scroll to the bottom, it is a little trickier. ![]() If you want to scroll to the bottom by default for all text areas on the page, it is a little simpler. How do I move the default scroll of 'st.text_area' to the bottom? □ Using Streamlit ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |