inst/shinydemos/effect_specific_options.R

library(shinyjqui)

ui <- fluidPage(
  div(id = "foo", "Hello Shiny", click = "foo_click"),

  actionButton("bar", "Click to highlight")
)

server <- function(input, output, session) {
  observeEvent(input$bar, {
    jqui_effect("#foo", effect = "highlight",
                options = list(color = "green"),
                duration = 1500)
  }
  )
}

shinyApp(ui, server)

Try the shinyjqui package in your browser

Any scripts or data that you put into this service are public.

shinyjqui documentation built on Feb. 3, 2022, 9:06 a.m.