We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 51e133d commit 7c3b550Copy full SHA for 7c3b550
examples/all_types/all_types.py
@@ -9,6 +9,12 @@
9
panel_script_path = Path(__file__).with_name("all_types_panel.py")
10
panel = nipanel.create_streamlit_panel(panel_script_path)
11
12
+panel.set_value("example_selectbox", "Option 1")
13
+panel.set_value("example_slider", 50)
14
+panel.set_value("example_color_picker", "#000000")
15
+panel.set_value("example_multiselect", ["Option 1"])
16
+panel.set_value("example_radio", "Option 1")
17
+
18
print("Setting values")
19
for name, value in all_types_with_values.items():
20
print(f"{name:>15} {value}")
@@ -20,4 +26,5 @@
26
the_value = panel.get_value(name)
21
27
print(f"{name:>20} {the_value}")
22
28
29
23
30
print(f"Panel URL: {panel.panel_url}")
0 commit comments