-
Notifications
You must be signed in to change notification settings - Fork 4.2k
Example code in "Add widgets to sidebar" is wrong #808
Copy link
Copy link
Closed
Labels
type:bugSomething isn't working as expectedSomething isn't working as expectedtype:docsRequests for changes to docs (will be rerouted to docs repo)Requests for changes to docs (will be rerouted to docs repo)
Description
Link to doc page in question (if any):
https://streamlit.io/docs/api.html#add-widgets-to-sidebar
Name of the Streamlit feature whose docs need improvement:
add_selectbox = st.sidebar.checkbox(
'How would you like to be contacted?',
('Email', 'Home phone', 'Mobile phone'))
)
What you think the docs should say:
add_selectbox = st.sidebar.radio(
'How would you like to be contacted?',
('Email', 'Home phone', 'Mobile phone'))
Modifications include:
- Change checkbox to radio
- Remove extra closing parenthesis
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
type:bugSomething isn't working as expectedSomething isn't working as expectedtype:docsRequests for changes to docs (will be rerouted to docs repo)Requests for changes to docs (will be rerouted to docs repo)