I need to add a CSS class to a series of textOutput in a shiny app.
When I try, e.g.:
textOutput('text', class = 'error')
I get:
Warning: Error in textOutput: unused argument (class = "error")
It is possible to alter the CSS of the id of that textOutput. However, my ids are generated dynamically, so that is not a good solution. A possible alternative would be to 'grab' all ids that begin with/contain "error" (e.g. "error1", "error2"), but I am not sure if this is possible within my CSS style sheet.
classFuncfunctions fromshinyjshelp with this situation? rdrr.io/cran/shinyjs/man/classFuncs.html