tippyTheme | R Documentation |
Convenience function to create a theme.
tippyTheme(
name,
box_bg = "black",
box_color = "white",
box_font_size = "12px",
arrow_color = box_bg,
content_bg = box_bg,
content_color = box_color,
content_font_size = box_font_size
)
name |
Name of theme. |
box_bg, box_color, content_bg, content_color |
Background and text color respectively. |
box_font_size, content_font_size |
Size of the font. |
arrow_color |
Color of the arrow (if enabled). |
library(shiny)
ui <- fluidPage(
useTippy(),
tippyTheme("myTheme", box_bg = "darkred"),
h5("plot tooltip", id = "plotTip"),
tippyThis(
"plotTip",
"Hello world",
theme = "myTheme"
)
)
server <- function(input, output) {}
if(FALSE){
shinyApp(ui, server)
}
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.