plotly / dash-table-experiments

NO LONGER SUPPORTED - use https://github.com/plotly/dash-table instead
MIT License
174 stars 57 forks source link

feature request: can I use callback to output to the editable table? #90

Closed charleywan2004 closed 5 years ago

charleywan2004 commented 5 years ago

Can I use callback to output to the editable table? for example, I use some inputs to update the dataframe in editable table, then use editable table to update plot. This will allow not only manual change of the editable table, but also programmatically change the editable table.

charleywan2004 commented 5 years ago

I found the answer, i.e. to update rows

@app.callback( Output('editable-table', 'rows'), [Input('graph', 'clickData')]) def update_rows(clickData): if clickData: rows=DF_SIMPLE.to_dict('records') else: rows=[]

return rows