Spaces:
Running
Running
Update app2.py
Browse files
app2.py
CHANGED
|
@@ -32,8 +32,17 @@ button3 = pn.widgets.Button(icon='settings', icon_size='1.5em', name='Settings',
|
|
| 32 |
toggle_button1 = pn.widgets.Toggle(name="Filter 1", on_text="filter1", off_text="filter2", width=140)
|
| 33 |
toggle_button2 = pn.widgets.Toggle(name="Filter 2", on_text="filter3", off_text="filter4", width=140)
|
| 34 |
|
|
|
|
|
|
|
|
|
|
|
|
|
| 35 |
# Create a column layout for the buttons inside the toggleable sidebar
|
| 36 |
-
buttons = pn.Column(
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 37 |
|
| 38 |
# List to store the entered options
|
| 39 |
loaded_list = TLDR.load_categories()
|
|
|
|
| 32 |
toggle_button1 = pn.widgets.Toggle(name="Filter 1", on_text="filter1", off_text="filter2", width=140)
|
| 33 |
toggle_button2 = pn.widgets.Toggle(name="Filter 2", on_text="filter3", off_text="filter4", width=140)
|
| 34 |
|
| 35 |
+
# Create Markdown panes to display the filter names
|
| 36 |
+
filter_name1 = pn.pane.Markdown("Filter 1")
|
| 37 |
+
filter_name2 = pn.pane.Markdown("Filter 2")
|
| 38 |
+
|
| 39 |
# Create a column layout for the buttons inside the toggleable sidebar
|
| 40 |
+
buttons = pn.Column(
|
| 41 |
+
button1, button2, button3,
|
| 42 |
+
pn.Row(filter_name1, toggle_button1),
|
| 43 |
+
pn.Row(filter_name2, toggle_button2),
|
| 44 |
+
css_classes=['hidden']
|
| 45 |
+
)
|
| 46 |
|
| 47 |
# List to store the entered options
|
| 48 |
loaded_list = TLDR.load_categories()
|