readCallback: Read a JS callback function into rintrojs

View source: R/introjs.R

readCallbackR Documentation

Read a JS callback function into rintrojs

Description

Reads a JS callback function into rintrojs

Usage

readCallback(funname = c("switchTabs"))

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.

Value

A string containing the body of a callback function

Examples

## Not run: 
introjs(session, events = list(onbeforechange = readCallback("switchTabs")))

## End(Not run)

rintrojs documentation built on Oct. 27, 2023, 1:08 a.m.