Open parthpatadiya opened 1 year ago
adding hints column in steps also not showing any hints
library(shiny)
library(rintrojs)
ui <- shinyUI(fluidPage(
introjsUI(),
mainPanel(
textInput("intro","Enter an introduction"),
actionButton("btn","Press me")
)
)
)
server <- shinyServer(function(input, output, session) {
steps <- reactive(data.frame(element = c(NA,"#btn"),
intro = c(input$intro,"This is a button"),
hint = c("hint1","hint2")))
observeEvent(input$btn,{
introjs(session,options = list(steps=steps()))
})
})
# Run the application
shinyApp(ui = ui, server = server)
Using below code to generate hints from server side dynamically in r shiny app. but it's not working. basically i want to use hint with css element because i can't select sidebar toggle button in ui.r using infoBox().