I’ve tried using the DateEditor to be able to select date. I’ve used the following code but it doesn’t work:
value_line_data_table_data = {'valuelines': [],
'parameters': [],
'parameters2':[]}
value_line_table_source = ColumnDataSource(value_line_data_table_data)
columns = [
TableColumn(field="valuelines", name='valueline', title="Value Line",
editor=SelectEditor(options=
config.algo_configurations[strategy_algorithm]['value_lines'])),
TableColumn(field="parameters", name='parameters', title="Start Date",editor=DateEditor()),
TableColumn(field="parameters2", name='parameters2', title="End Date",editor=DateEditor())
]
value_line_data_table = DataTable(source=value_line_table_source, columns=columns, index_position=None,
width=400, reorderable=True, fit_columns=True, selectable='checkbox',
editable=True)
'''
How should I correct this? Also, if there's any other good way of entering dates through a dropdown, please suggest.