Title says it all, I’m trying to set up a callback to the selected cell by user, using:
@app.callback(Output('log', 'children'),
Input('my-sortable-table', 'active_cell'),
State('my-sortable-table', 'data'))
def print_active_cell(active_cell, data):
print(active_cell)
return str(active_cell)
Outputs to console:
{'row': 4, 'column': 1, 'column_id': 'limit'}
.
The active_cell
dictionary is missing row_id
.
Anything I should do to make sure this property gets passed on?
As I want the table to be sortable, the value passed in row
is no good.
Thanks!