Dear All,
I am creating a dashboard and have used filtering on a data base which user can see and also filter data.
I am looking to download data once User has filtered it.
html.Div([
dash_table.DataTable(
id='data-table',
data=df.to_dict('records'),
columns=[{'id': c, 'name':c} for c in columns],
filter_action="native",
fixed_rows = {'headers': True},
style_cell={'width': '200px', 'textAlign': 'center'},
style_table={'overflowX': 'auto','overflowY':'auto','maxHeight': '400px','minwidth':'100%','font-family':'Calibri'},
style_header={
'backgroundColor': 'rgb(52,98,145)',
# 'fontWeight': 'bold',
'textAlign':'center',
'color':'white',
'font-family':'Calibri'
}
)
],id='data-table-div',style={'width':'100%','height':'10%','display':'block','backgroundColor':'#f5f5f5'}
I am seeking to download filtered data to csv.
Seeking your support.