Hi,
I making a page with on the left a datatable, and on the right a map (dash-leaflet). The data from the table is represented in on the map, as markers.
I would like to make some kind of functionality that when I click/select a cell in the datatable, the marker is changed of color, or something similar.
The markers have an id, corresponding with the row ids in the table.
So I figured I had to use pattern matching, on the id.
Input: active cell - row_id, output id of the marker.
But I’m unsure how I can implement the row_id as an input?
app.callback(
INPUT({'type': ?, 'index': MATCH}, id),
OUTPUT({'type': 'marker', 'index': MATCH}, icon
)
def ...
Any tips?