datasketch / shinypanels

Collapsible panels layout for r shiny apps

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

modalButton doesn't work (trigger's modal) when rendered from within the server (not in the ui)

brazadas opened this issue · comments

I think this has to do with running timing: when the js script that defines all the shinypanels' modalbuttons (buttons or a tags with the class "modal-trigger") behaviour is executed, the modalButtons rendered from within the server don't exist yet so they aren't "taken into account" when the click event listeners are created, this meaning they don't do what is expected. I tried some of shiny js events such as sessioninitialized, connected but I couldn't make it work... but maybe this or some usage of setTimeout