tippy_this | R Documentation |
Binds a tooltip to a valid CSS selector.
tippy_this(selector, content = NULL, ...)
tippyThis(selector, content = NULL, ..., .is_tag = FALSE)
selector |
A CSS selector, e.g.: '#id' or '.class'. If it is a bare selector (e.g.: 'sth') then it is assumed to be an id and processed as '#sth'. Set '.is_tag' to 'TRUE' to disable that. |
content |
Content of the tooltip. |
... |
Any other options from the official documentation. |
.is_tag |
Whether the selector is a tag, e.g.: '<p>'. |
library(shiny)
ui <- fluidPage(
tippy(h3("Hello"), "World"),
h4("World", id = "theId"),
tippyThis("theId", "A tooltip")
)
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.