withTooltip: Tooltip

withTooltipR Documentation

Tooltip

Description

Add a tooltip to an element.

Usage

withTooltip(el, title, placement = c("top", "right", "bottom", "left"))

Arguments

el

Element.

title

HTML tag or character vector of length 1.

placement

Placement of the tooltip.

Examples

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)


JohnCoene/bsutils documentation built on June 15, 2024, 3:21 a.m.