rstudio / htmltools

Tools for HTML generation and output
https://rstudio.github.io/htmltools/
215 stars 68 forks source link

Is there a way to access a live shiny app HTML code with `tagQuery()`? #293

Closed samssann closed 2 years ago

samssann commented 2 years ago

In jQuery this would just be

$(".treeview")

But is there a way in the shiny app server code to access the current state of the html code? e.g.

tagQuery(session$html)$find(".treeview")$selectedTags()
wch commented 2 years ago

Sorry, tagQuery() only works on tag objects in R; it won't work on objects that are in the DOM on the client.