EasySci commited on
Commit
8c6f2a8
·
1 Parent(s): 9acf9fb

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +5 -4
app.py CHANGED
@@ -18,7 +18,7 @@ of cross-filtering.
18
  text = pn.pane.Markdown(instructions)
19
 
20
  # List to store the entered options
21
- entered_options = ["option1", "option2", "option3", "option4","option5","option6","option7"]
22
 
23
  # MultiChoice widget to display the filter options
24
  filter_list = pn.widgets.MultiChoice(
@@ -31,7 +31,7 @@ filter_list = pn.widgets.MultiChoice(
31
  )
32
 
33
  # Create buttons for the header
34
- header_buttons = []
35
 
36
  # Callback for adding selected option to the header as a button
37
  def add_to_header(event):
@@ -48,11 +48,12 @@ add_to_header_button.on_click(add_to_header)
48
  # Layout using Template
49
  template = pn.template.FastListTemplate(
50
  title="EasySciRead",
51
- header=[pn.Row(filter_list, pn.Spacer(), add_to_header_button)],
52
- sidebar=[buttons],
53
  main=[
 
54
  pn.Column(text),
55
  ],
 
56
  accent_base_color="#88d8b0",
57
  header_background="#FFFFFF",
58
  header_color="#000000",
 
18
  text = pn.pane.Markdown(instructions)
19
 
20
  # List to store the entered options
21
+ entered_options = ["option1", "option2", "option3"]
22
 
23
  # MultiChoice widget to display the filter options
24
  filter_list = pn.widgets.MultiChoice(
 
31
  )
32
 
33
  # Create buttons for the header
34
+ header_buttons = pn.Column(sizing_mode='stretch_width', css_classes=['header-buttons'])
35
 
36
  # Callback for adding selected option to the header as a button
37
  def add_to_header(event):
 
48
  # Layout using Template
49
  template = pn.template.FastListTemplate(
50
  title="EasySciRead",
51
+ header=[pn.Row(filter_list, add_to_header_button)],
 
52
  main=[
53
+ pn.Row(header_buttons),
54
  pn.Column(text),
55
  ],
56
+ sidebar=[buttons],
57
  accent_base_color="#88d8b0",
58
  header_background="#FFFFFF",
59
  header_color="#000000",