Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -61,11 +61,11 @@ filter_list = pn.widgets.MultiChoice(
|
|
| 61 |
placeholder="Search Topics"
|
| 62 |
)
|
| 63 |
|
| 64 |
-
# Callback to remove the clicked header button and add it back to the filter list
|
| 65 |
def remove_from_header(event):
|
| 66 |
button_name = event.name
|
| 67 |
-
buttons_to_add.remove(button_name) # Remove from the header buttons list
|
| 68 |
filter_list.options.append(button_name) # Add back to the filter list options
|
|
|
|
| 69 |
update_header() # Update the header and filter list
|
| 70 |
|
| 71 |
# Layout using Template
|
|
|
|
| 61 |
placeholder="Search Topics"
|
| 62 |
)
|
| 63 |
|
| 64 |
+
# Callback to remove the clicked header button and add it back to the filter list options
|
| 65 |
def remove_from_header(event):
|
| 66 |
button_name = event.name
|
|
|
|
| 67 |
filter_list.options.append(button_name) # Add back to the filter list options
|
| 68 |
+
buttons_to_add.remove(button_name) # Remove from the header buttons list
|
| 69 |
update_header() # Update the header and filter list
|
| 70 |
|
| 71 |
# Layout using Template
|