withTooltip | R Documentation |
Add a tooltip to an element.
withTooltip(el, title, placement = c("top", "right", "bottom", "left"))
el |
Element. |
title |
HTML tag or character vector of length 1. |
placement |
Placement of the tooltip. |
library(shiny) ui <- fluidPage( theme = bslib::bs_theme(version = 5L), withTooltip( span("plain"), "content" ), br(), withTooltip( span("HTML"), tagList( strong("HTML"), "content" ) ) ) server <- \(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.