Description Usage Arguments Functions See Also Examples
Dynamically use tippy.
1 2 3 4 5 | use_tippy()
call_tippy(target, ...)
tippy_class(class, ...)
|
target |
Target element. |
... |
Any option from the official documentation. |
class |
Class of elements to apply tooltip to. |
use_tippy
Includes tippy.js in header.
call_tippy
call tippy
on specific target element(s), place after elements to be targeted.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 | if(interactive()){
library(shiny)
shinyApp(
ui = fluidPage(
p("Some text", class = "tooltip"),
p("Some text", class = "tooltip"),
p("Some text", class = "tooltip"),
p("Some text", class = "tooltip"),
p("Some text", class = "tooltip"),
p("Some text", class = "tooltip"),
tippy_class("tooltip", content = "Hi!") # all elements with class
),
server = function(input, output) {}
)
}
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.