Hello, I was looking at the documentation and noticed that DeckGL panes have a click_state that can be used to gathered the click state of the DeckGL panel. I’ve been trying to implement something simple to start off with - a text on the dashboard that updates as the click state changes. However, I haven’t been able to figure this out. I thought creating a function with @pn.depends(‘deck_gl.click_state’) or @pn.depends(deck_gl.click_state)
would work - but it throws errors like AttributeError: ‘str’ object has no attribute ‘owner’
Could someone turn me to the right direction on using click_state? It seems very useful, but I haven’t been able to find a working example of using it in panel and I was hoping for some guidance.
Panel offers multiple APIs to react on events. In the example below I use pn.bind. With pn.depends, you should put in the decorator a reference to a Parameter, as in @pn.depends(deck_gl.param.click_state).