tour_changeClass: Generate a JS callback string for rintrojs tour

Description Usage Arguments Details Value Examples

Description

This function generates an JS callback character string to change remove an active class and add and trigger a new class in its place.

Usage

1

Arguments

step

numeric, a vector of steps to apply the change to.

from

character, a vector of the the active classes to be removed.

to

character, a single class to add as active and trigger with a click.

Details

This function is useful on rintrojs tours in order to, for example, ensure that the active tab panel changes accordingly depending on tour content that is required to be visible during particular steps. Note that only one active class should be added at a time. Call twice to add two active classes for a common step.

Value

a character string.

Examples

1
#not run

leonawicz/apputils documentation built on May 13, 2019, 1:38 a.m.