Skip to content

Commit e4ca553

Browse files
committed
Update Display interactive widgets.md
1 parent 15839d1 commit e4ca553

File tree

1 file changed

+11
-1
lines changed

1 file changed

+11
-1
lines changed

Display interactive widgets.md

+11-1
Original file line numberDiff line numberDiff line change
@@ -77,4 +77,14 @@ This line displays a select box widget in the sidebar with the options ['f']. If
7777

7878
st.write(slider_val)
7979

80-
This line attempts to display the value of the variable `slider_val`, but it seems to be a typo as the variable is defined as `my_slider_val`. It should be `st.write(my_slider_val)` to correctly display the value of the slider.
80+
This line attempts to display the value of the variable `slider_val`, but it seems to be a typo as the variable is defined as `my_slider_val`. It should be `st.write(my_slider_val)` to correctly display the value of the slider.
81+
82+
***Disable widgets to remove interactivity:***
83+
84+
st.slider('Pick a number', 0, 100, disabled=True)
85+
86+
This line of code creates a slider widget labeled 'Pick a number' with values ranging from 0 to 100. However, the widget is disabled, meaning that the user cannot interact with it or change its value.
87+
88+
89+
90+

0 commit comments

Comments
 (0)