Comments (3)
This worked for me (and was the motivation behind Tom Jemmett doing #73)
I tried something like this in our existing Shiny Dashboard and it seemed to work fine.
tabPanel(
title = "Home",
icon = icons::health_icons("blood_bag"),
...)
This was a direct swap for icon = icon("building")
i.e. shiny::icon
that was there before.
from icons.
Thanks! I'm closing this since this is a limitation of shiny's validateIcon()
function which is used in actionButton()
.
The equivalent result for buttons can be obtained with actionButton("rocket", list(fontawesome$solid$rocket, "Rocket"))
.
from icons.
Minimal example:
library(shiny)
library(icons)
ui <- fluidPage(
actionButton("d1", "Rocket", icon = icon("rocket")),
actionButton("rocket", list(fontawesome$solid$rocket, "Rocket"))
)
server <- function(input, output) {}
shinyApp(ui = ui, server = server)
from icons.
Related Issues (20)
- Rough migration due to name change HOT 1
- Improve icons integration with {ggwordcloud}
- feather icons HOT 2
- cannot install HOT 3
- icons don't appear to work inside YAML of rmarkdown? HOT 2
- Add style and class options for svg HOT 2
- Impossible to download Google Materials Icons HOT 1
- Add SuperTinyIcons
- Creating and using svg as icons in R Shiny HOT 2
- Add a rstuido addin to search the icon in all sets with preview HOT 1
- Bummed out by breaking changes HOT 3
- Signal to user to run `download_fontawesome(version = "dev")` HOT 2
- provide a function to see all icons in a set HOT 1
- Can
- the command "download_google_material()" does not work HOT 7
- Potential Case Handling Bug HOT 1
- cannot open the connection download_fontawesome() HOT 3
- add support for Health Icons HOT 1
- Compatibility with {gt}
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from icons.