Clientside Callback w/ dangerously_set_inner_html
Is it possible to target elements in an HTML block that uses dangerously_set_inner_html with a clientside callback? (I assume not, but wanted to check.) I'm working on an application where that would be very useful!
Not directly, no. You can have the clientside callback use the children prop as its output. Or you may be able to have the clientside callback return a dummy value, and in the javascript function find the relevant DOM element inside that block and alter it. You run the risk of losing that change if the page ever decides to rerender the dangerously_set_inner_html component, which shouldn't happen if you don't change the children prop but there are no guarantees about this.