EasySci commited on
Commit
69395d7
·
1 Parent(s): 8ea7b44

Update app2.py

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