This function must be called from a Shiny app's UI in order to use the package.
introjsUI(includeOnly = FALSE, cdn = FALSE, version = "3.2.1")
Only include intro.js files. For users who will write their own javascript
Indicate whether to include intro.js files from CDN
Specify intro.js version to use from cdn
if (FALSE) {
library(rintrojs)
library(shiny)
shinyApp(
ui = fluidPage(
introjsUI(), # must include in UI
actionButton("btn", "Click me")
),
server = function(input, output, session) {
observeEvent(input$btn, {
intro <- data.frame(element="#btn",
intro="In Codd we trust")
introjs(session, options = list(steps= intro))
})
}
)
}