Binds a tooltip to a valid CSS selector.

tippy_this(selector, content = NULL, ...)

tippyThis(selector, content = NULL, ..., .is_tag = FALSE)

Arguments

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>`.

Examples

library(shiny) ui <- fluidPage( tippy(h3("Hello"), "World"), h4("World", id = "theId"), tippyThis("theId", "A tooltip") ) server <- function(input, output) {} if(interactive()) shinyApp(ui, server)