I would like to open through radio buttons and checkbox methods in another browser tab.
For example: when you click on the ‘limpeza de dados’ button, open its contents in another tab.
Could anyone help me with this?
I would like to open through radio buttons and checkbox methods in another browser tab.
Hi, @WALINGSON.
Do you really need as radio button or checkbox? And open a new tab? You can open a new tab with a link or button in HTML using st.markdown(unsafe_allow_html=True)
I did a navigation with radio button as you can see on https://awesome-streamlit.org/
I have no preference for the type of button, (radio and checkbox)… After clicking on the button or link I would like the methods below to be loaded on another page.
Which application has this example?
You can make a link, like this example:
st.markdown('<a target="_blank" href="https://www.globo.com/">Access globo.com</a>', unsafe_allow_html=True)
I created a main.py, and when I run on terminal, I call main.py. This main file import others streamlits applications.
import home
import pageOne
PAGES = {
"Home": home,
"Page One": pageOne
}
def main():
enable_fullscreen_content()
st.sidebar.title('Navigation')
selection = st.sidebar.radio("Go to", list(PAGES.keys()))
page = PAGES[selection]
with st.spinner(f'Loading {selection} ...'):
page.main()
These cookies are necessary for the website to function and cannot be switched off. They are usually only set in response to actions made by you which amount to a request for services, such as setting your privacy preferences, logging in or filling in forms.
These cookies allow us to count visits and traffic sources so we can measure and improve the performance of our site. They help us understand how visitors move around the site and which pages are most frequently visited.
These cookies are used to record your choices and settings, maintain your preferences over time and recognize you when you return to our website. These cookies help us to personalize our content for you and remember your preferences.
These cookies may be deployed to our site by our advertising partners to build a profile of your interest and provide you with content that is relevant to you, including showing you relevant ads on other websites.