Go back to top of a large page/ sidebar radio button

Hello everyone,

I use the widget sidebar radio button to display different pages. Some of them are quite large , so i have to scroll to the back of the page to see the content but when i choose another radio button option, it displays the back of the new page, and i must scroll to the top. How can I go directly to the top of the new page?
For the moment, i add a link at the bottom of the page :
image

which refers to :

Is it possible to customize the radio button ?
Thanks in advance :slight_smile:

1 Like

Hi @ally and welcome to the forum :wave:

Unfortunately, right now that’s not supported in Streamlit.

However, one of our major goals for 2020 is Streamlit plugin system which will give you the ability to write arbitrary JavaScript code and insert it into your app. This opens the door for a lot of possibilities for custom solutions to layout, visualization, interactivity with chart/maps/tables, and other unique needs of your app. You can help design this feature or follow its progress over there https://github.com/streamlit/streamlit/issues/327.

P.S. Thanks for using Streamlit!

1 Like