tippy_funcs: Create a tooltip

Description Usage Arguments See Also Examples

Description

Add tooltips to your document.

Usage

1
2
3
4
5
tippy(text, tooltip, ..., elementId = NULL)

tippy_this(elementId, tooltip, ...)

with_tippy(element, tooltip, ...)

Arguments

text

Element text.

tooltip

Element tooltip.

...

Any other options from the official documentation.

elementId

string id as a valid CSS element id.

element

An object of class shiny.tag.

See Also

official documentation

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
tippy("Hover me!", tooltip = "Hi, I'm the tooltip!")
tippy("Hover me!", tooltip = "Hi, I'm the tooltip!", placement = "right",
  theme = "light")
tippy("Hover me!", tooltip = "Hi, I'm the tooltip!", animation = "scale",
  duration = 1000, placement = "bottom")
tippy("Click me!", tooltip = "Hi, I'm the tooltip!", trigger = "click",
  theme = "light")

# use tooltip on other elements.
if(interactive()){
library(shiny)

shinyApp(
  ui = fluidPage(
    with_tippy(textInput("input", "input with tooltip"), "Input text", placement = "right")
 ),
 server = function(input, output) {}
)
}

tippy documentation built on Jan. 16, 2021, 5:29 p.m.