Make server dynamically insert HTML code into UI

I want to have my server.R insert HTML code into my UI.R. The reason I want to do this is that I want a machine-readable (and thus accessible, for people with disabilities) version of my UI. How can I make the server modify the HTML DOM of my UI? Thank you!

Ok, this is embarrassing...... Shiny already does what I was asking about...... I was just looking at the HTML code generated when the page loads, but there is more HTML code inserted into the existing HTML later. So there is no problem after all :blush:

Hello @pfeiffss,
I've shared an article on how to dynamically generate UI components in a Shiny apps, which might be interesting for you. Shiny companion app + code available.

1 Like

This topic was automatically closed 54 days after the last reply. New replies are no longer allowed.

If you have a query related to it or one of the replies, start a new topic and refer back with a link.