Add Tooltips to 'R markdown' Documents or 'Shiny' Apps

'Htmlwidget' of 'Tippyjs' to add tooltips to 'Shiny' apps and 'R markdown' documents.


Build Status

Tippy.js R htmlwidget.

Install

devtools::install_github("JohnCoene/tippy")

Documentation

Examples

# standard
tippy("Hover me!", tooltip = "Hi, I'm the tooltip!")
 
tippy("Hover me!", 
  tooltip = "Hi, I'm the tooltip!", 
  position = "right",
  theme = "light")
 
tippy("Hover me!", 
  tooltip = "Hi, I'm the tooltip!", 
  animation = "scale",
  duration = 1000, position = "bottom")
 
tippy("Click me!", 
  tooltip = "Hi, I'm the tooltip!", 
  trigger = "click",
  theme = "light")
 
# in shiny
library(shiny)
 
# use tooltip on other elements.
library(shiny)
 
shinyApp(
  ui = fluidPage(
    textInput("input", "input with tooltip"),
    tippy("Some text", tooltip = "Tiiiip"),
    tippy_this("input", "Tooltip", placement = "right")
 ),
 server = function(input, output) {}
)
 
# dynamic
library(shiny)
 
shinyApp(
  ui = fluidPage(
    use_tippy(),
    p("Some text", title = "tooltip"),
    p("Some text", title = "tooltip"),
    p("Some text", title = "tooltip"),
    p("Some text", title = "tooltip"),
    p("Some text", title = "tooltip"),
    p("Some text", title = "tooltip"),
    call_tippy("[title]", placement = "top")
 ),
 server = function(input, output) {}
)

News

Reference manual

It appears you don't have a PDF plugin for this browser. You can click here to download the reference manual.

install.packages("tippy")

0.0.1 by John Coene, 10 months ago


http://tippy.john-coene.com/


Report a bug at https://github.com/JohnCoene/tippy/issues


Browse source code at https://github.com/cran/tippy


Authors: John Coene [aut, cre]


Documentation:   PDF Manual  


MIT + file LICENSE license


Imports htmlwidgets, htmltools, shiny, jsonlite


See at CRAN