tippyThis: Bind Tooltip to a Selector

View source: R/tippy.R

tippy_thisR Documentation

Bind Tooltip to a Selector

Description

Binds a tooltip to a valid CSS selector.

Usage

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(FALSE){
 shinyApp(ui, server)
}


JohnCoene/tippy documentation built on April 16, 2023, 2:37 p.m.