html_dependency_phosphor | R Documentation |
Allow to explicitly load dependency for using Phosphor icons.
html_dependency_phosphor()
An htmltools::htmlDependency()
object.
Dependency is automatically loaded when using ph_i()
, but in some case,
like when using icon
argument in some function, you might need to call html_dependency_phosphor()
to make icons appears.
library(shiny)
library(phosphoricons)
ui <- navbarPage(
title = "Phosphor Icons",
header = list(
html_dependency_phosphor()
),
tabPanel("Home", icon = ph_i("house")),
tabPanel("Parameters"),
tabPanel("Results")
)
server <- function(input, output, session) {
}
if (interactive())
shinyApp(ui, server)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.