shinyhelper
shinyhelper copied to clipboard
HTML in modalButton
Can I set an icon (or other HTML) as buttonLabel?
I've tried:
"<i class='fas fa-check fa-2x'></i>"
HTML("<i class='fas fa-check fa-2x'></i>")
icon("check")
But it always ends up showing the raw HTML code in the button instead of the icon.
This is currently not supported, as the label argument is passed as-is to shiny::modalButton
. Should be fixable my end though, by wrapping the label in shiny::HTML
- will need to test it out.