shinyhelper icon indicating copy to clipboard operation
shinyhelper copied to clipboard

HTML in modalButton

Open lotumgh opened this issue 3 years ago • 1 comments

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.

lotumgh avatar Mar 24 '21 10:03 lotumgh

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.

cwthom avatar Jun 18 '21 07:06 cwthom