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

tour_changeClass(step, from, to)

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.

Value

a character string.

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.

Examples

#not run