I am re-rendering a UI with renderUI. However, I need to attach some jquery plugins on the resulting HTML immediately after it has been attached.
is there a way to perform javascript operations immediately after the HTML has been attached to the DOM, without relying on monitoring the DOM itself for changes?
shinyjs to me seems more like a collection of additional handlers. You can only trigger them procedurally, but the point is that there's nothing to apply them on, if the html hasn't been attached to the DOM. This happens only after the renderUI returns the chunk, which is then delivered client side, and only then the javascript can be executed. However, the renderUI call is now over. How can you trigger a javascript event after that?