Folks,
I cannot figure out why my data table is not interactive. I am looking for it to be capable of both sorting and filtering. Also, the next and previous buttons don’t work.
#Table
dash_table.DataTable(
id='table',
columns=[{"name": i, "id": i} for i in df.columns],
data=df.to_dict("rows"),
editable=True,
filtering=True,
sorting=True,
sorting_type='multi',
n_fixed_rows=1,
style_cell_conditional=[
{'if':{'column_id':'Status'},
'width':'10%'},
{'if':{'column_id':'Work Order'},
'width':'10%'},
{'if':{'column_id':'Part Number'},
'width':'10%'},
{'if':{'column_id':'Serial Numbers'},
'width':'10%'},
{'if':{'column_id':'Quantity'},
'width':'5%'},
{'if':{'column_id':'Program'},
'width':'10%'},
{'if':{'column_id':'Arrival Date'},
'width':'10%'},
{'if':{'column_id':'Need Date'},
'width':'10%'},
{'if':{'column_id':'Test Date'},
'width':'10%'},
{'if':{'column_id':'Test ID'},
'width':'5%'},
{'if':{'column_id':'Facility'},
'width':'10%'}],
style_table={
'maxHeight':'300',
'overflowY':'scroll',
'overflowX':'scroll'}
),
Any help is appreciated.
Cheers.