Learn R Programming

rintrojs (version 0.3.4)

readCallback: Read a JS callback function into rintrojs

Description

Reads a JS callback function into rintrojs

Usage

readCallback(funname = c("switchTabs"))

Value

A string containing the body of a callback function

Arguments

funname

The name of the function you want to use. Options include:

switchTabs

This function is intended to be passed to IntroJs's onbeforechange method. It will switch the currently active tab in your Shiny app to be the one containing the next element in your tour (this function is called by IntroJs right before it moves to the next element). Try running shiny::runApp(system.file("examples/switchTabs.R", package = "rintrojs")) to see an example.

Examples

Run this code
if (FALSE) {
introjs(session, events = list(onbeforechange = readCallback("switchTabs")))
}

Run the code above in your browser using DataLab