-
Notifications
You must be signed in to change notification settings - Fork 12
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Icon as label in loadingButton #60
Comments
@bartekch This can be done with the
|
@phoward38 thanks, works! Although the button looks a bit uglier than those with |
@bartekch You can add the class |
@phoward38 great, thanks! It works perfectly. Although indeed |
In case this is helpful for anyone else facing a similar issue, I was able to create a nice-looking loading button with a single icon (i.e. minus symbol) with the following R code:
Note that I needed to specify the font-weight style for the icon to be visible - I don't why. |
@bartekch @jeffreyhanson I've created a PR for this fix that should be merged shortly, but until then you can use the feature/loadingButton_icon branch. remotes::install_github("merlinoa/shinyFeedback", ref = "feature/loadingButton_icon") |
Awesome - thank you very much @phoward38! |
@jeffreyhanson No problem! Let me know if you find any bugs using that branch but it's been tested, so the @bartekch Leaving issue open until PR is merged. |
Is it possible to provide an icon to appear on
loadingButton
as a label? I've tried this (shinyFeedback 0.4.0
):It works initially, but after reset there is HTML as a text instead of an icon.
It would be great if there is an option to do it, similarly to
icon
parameter foractionButton
.The text was updated successfully, but these errors were encountered: