methods | R Documentation |
Call tippy methods on tooltips.
tippy_disable(
selectors = NULL,
.session = shiny::getDefaultReactiveDomain(),
.is_tag = FALSE
)
tippy_enable(
selectors = NULL,
.session = shiny::getDefaultReactiveDomain(),
.is_tag = FALSE
)
tippy_destroy(
selectors = NULL,
.session = shiny::getDefaultReactiveDomain(),
.is_tag = FALSE
)
tippy_show(
selectors = NULL,
.session = shiny::getDefaultReactiveDomain(),
.is_tag = FALSE
)
tippy_hide(
selectors = NULL,
.session = shiny::getDefaultReactiveDomain(),
.is_tag = FALSE
)
selectors |
Selectors of tooltips to apply the method. If 'NULL' then the method is applied to _all tooltips._ |
.session |
A valid shiny session. |
.is_tag |
Whether 'selectors' are tags, e.g.: '<p>'. |
library(shiny)
library(tippy)
ui <- fluidPage(
useTippy(),
h5("plot tooltip", class = "tip"),
p("Another tooltip", class = "tip"),
tippyThis(
".tip",
"This is indeed a tooltip"
),
actionButton("disable", "Disable"),
actionButton("enable", "Enable")
)
server <- function(input, output) {
observeEvent(input$disable, {
tippy_disable()
});
observeEvent(input$enable, {
tippy_enable()
})
}
if(FALSE) {
shinyApp(ui, server)
}
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.