|
8 | 8 |
|
9 | 9 | st.title("Sample Panel") |
10 | 10 |
|
11 | | -col1, col2, col3 = st.columns([0.4, 0.3, 0.3]) |
| 11 | +col1, col2 = st.columns([0.4, 0.6]) |
12 | 12 |
|
13 | 13 | with col1: |
14 | | - st.markdown("**Type**") |
15 | 14 | st.write("String") |
16 | 15 | st.write("Integer") |
17 | 16 | st.write("Float") |
18 | 17 | st.write("Boolean") |
19 | 18 | st.write("List") |
20 | 19 |
|
21 | 20 | with col2: |
22 | | - st.markdown("**Set Values**") |
23 | | - st.write(panel.get_value("sample_string")) |
24 | | - st.write(panel.get_value("sample_int")) |
25 | | - st.write(panel.get_value("sample_float")) |
26 | | - st.write(panel.get_value("sample_bool")) |
27 | | - st.write(panel.get_value("float_values")) |
28 | | - |
29 | | -with col3: |
30 | | - st.markdown("**Default Values**") |
31 | | - st.write(panel.get_value("missing_string", "0")) |
32 | | - st.write(panel.get_value("missing_int", 0)) |
33 | | - st.write(panel.get_value("missing_float", 0.0)) |
34 | | - st.write(panel.get_value("missing_bool", False)) |
35 | | - st.write(panel.get_value("missing_list", [0.0])) |
| 21 | + st.write(panel.get_value("sample_string", "")) |
| 22 | + st.write(panel.get_value("sample_int", 0)) |
| 23 | + st.write(panel.get_value("sample_float", 0.0)) |
| 24 | + st.write(panel.get_value("sample_bool", False)) |
| 25 | + st.write(panel.get_value("float_values", [])) |
0 commit comments