Learn R Programming

tippy (version 0.1.0)

use_tippy_funcs: Use tippy

Description

Dynamically use tippy.

Usage

use_tippy()

call_tippy(target, ...)

tippy_class(class, ...)

Arguments

target

Target element.

...
class

Class of elements to apply tooltip to.

Functions

  • use_tippy Includes tippy.js in header.

  • call_tippy call tippy on specific target element(s), place after elements to be targeted.

See Also

official documentation

Examples

Run this code
# NOT RUN {
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) {}
)
}

# }

Run the code above in your browser using DataLab