EasySci commited on
Commit
3a8a1ca
·
1 Parent(s): ab2fd74

Update app2.py

Browse files
Files changed (1) hide show
  1. app2.py +0 -16
app2.py CHANGED
@@ -46,20 +46,6 @@ def display_selected_value(event):
46
  select.param.watch(display_selected_value, 'value')
47
  select2.param.watch(display_selected_value, 'value')
48
 
49
- custom_css = """
50
- .datepicker-modal {
51
- z-index: 10000 !important;
52
- }
53
- """
54
-
55
- # Custom callback to set the z_index of the date picker widget when it opens
56
- def set_date_picker_zindex(event):
57
- date_picker = event.obj
58
- date_picker.z_index = 9999 # Set a high z-index value to bring it to the front
59
-
60
- # Create the Datepicker widget
61
- date_picker = pn.widgets.DatePicker(name='Select Date', sizing_mode='stretch_width')
62
- date_picker.param.watch(set_date_picker_zindex, 'value')
63
 
64
  # Create a column layout for the buttons inside the toggleable sidebar
65
  buttons = pn.Column(
@@ -70,7 +56,6 @@ buttons = pn.Column(
70
  visible=True,
71
  sizing_mode='stretch_width',
72
  ),
73
- date_picker,
74
  css_classes=['hidden']
75
  )
76
 
@@ -162,7 +147,6 @@ template = pn.template.FastListTemplate(
162
  header_color="#000000",
163
  text_align='center',
164
  sidebar_width=200,
165
- css=custom_css,
166
  sizing_mode = 'stretch_both'
167
  )
168
 
 
46
  select.param.watch(display_selected_value, 'value')
47
  select2.param.watch(display_selected_value, 'value')
48
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
49
 
50
  # Create a column layout for the buttons inside the toggleable sidebar
51
  buttons = pn.Column(
 
56
  visible=True,
57
  sizing_mode='stretch_width',
58
  ),
 
59
  css_classes=['hidden']
60
  )
61
 
 
147
  header_color="#000000",
148
  text_align='center',
149
  sidebar_width=200,
 
150
  sizing_mode = 'stretch_both'
151
  )
152