Skip to content

Commit 2171170

Browse files
authored
DOC: small markdown fix (#752)
Fix the display of a list.
1 parent 260b12c commit 2171170

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

content/library/advanced-features/button-behavior-and-examples.md

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -118,12 +118,14 @@ st.slider('Select a value', disabled=st.session_state.button)
118118

119119
### Buttons to continue or control stages of a process
120120

121-
Another alternative to nesting content inside a button is to use a value in `st.session_state` that designates the "step" or "stage" of a process. In this example, we have four stages in our script: 0. Before the user begins.
121+
Another alternative to nesting content inside a button is to use a value in `st.session_state` that designates the "step" or "stage" of a process. In this example, we have four stages in our script:
122122

123+
0. Before the user begins.
123124
1. User enters their name.
124125
2. User chooses a color.
125126
3. User gets a thank-you message.
126-
A button at the beginning advances the stage from 0 to 1. A button at the end resets the stage from 3 to 0. The other widgets used in stage 1 and 2 have callbacks to set the stage. If you have a process with dependant steps and want to keep previous stages visible, such a callback forces a user to retrace subsequent stages if they change an earlier widget.
127+
128+
A button at the beginning advances the stage from 0 to 1. A button at the end resets the stage from 3 to 0. The other widgets used in stage 1 and 2 have callbacks to set the stage. If you have a process with dependant steps and want to keep previous stages visible, such a callback forces a user to retrace subsequent stages if they change an earlier widget.
127129

128130
```python
129131
import streamlit as st

0 commit comments

Comments
 (0)