Hi @bretauv. You should code it like the following.
library(shiny)
library(rintrojs)
ui <- navbarPage(
title = "foo",
introjsUI(),
tabPanel(
title = introBox("Panel 1",
data.step = 1,
data.intro = "This is Panel 1"),
fluidRow(actionButton("button1", "Button 1"))
),
tabPanel(
title = introBox("Panel 2",
data.step = 2,
data.intro = "This is Panel 2"),
fluidRow(actionButton("button2", "Button 2"))
)
# If you want to see a "normal" app, comment from "introjsUI()" to here, and uncomment the chunk below
# tabPanel(title = "Panel 1",
# fluidRow(actionButton("button1", "Button 1"))
# ),
# tabPanel(title = "Panel 2",
# fluidRow(actionButton("button2", "Button 2"))
# )
)
server <- shinyServer(function(input, output, session) {
introjs(session)
})
shinyApp(ui, server)```