Description Usage Arguments See Also Examples
Add tooltips to your document.
1 2 3 4 5 | tippy(text, tooltip, ..., elementId = NULL)
tippy_this(elementId, tooltip, ...)
with_tippy(element, tooltip, ...)
|
text |
Element text. |
tooltip |
Element tooltip. |
... |
Any other options from the official documentation. |
elementId |
|
element |
An object of class |
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) {}
)
}
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.