Hi dash team,
I have created custom react components that implement a drag-n-drop interaction mode.
In essence, one component (the source) can be dragged and dropped on another component (the destination) and self identify and say “Hey, I’m a component of type X”.
I would like to be able to let Python know that this interaction took place so on the Python side I can respond by:
- Adding a new child component inside a div
- Adding a new trace on a chart
- Adding a new column to a table, etc.
Is there a way to register dash callbacks that fire on javascript events (like the “drop” event I mentioned above)?
Because I’m writing these as custom react components I feel like it should be possible, but I’m having a hard time seeing the cleanest way to do this.
Thanks!