Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Incompatibility with rintrojs #131

Open
jtattersall09403 opened this issue Feb 4, 2021 · 0 comments
Open

Incompatibility with rintrojs #131

jtattersall09403 opened this issue Feb 4, 2021 · 0 comments

Comments

@jtattersall09403
Copy link

jtattersall09403 commented Feb 4, 2021

Is shinymaterial incompatible with rintrojs? The code below should pop up with an intro.js box for the heading, but nothing happens when the help button is clicked.

library(shiny)
library(dplyr)
library(shinymaterial)
library(rintrojs)

server <- function(input, output, session){
 
  observeEvent(input$help, {
    introjs(session, options = list("nextLabel"="Onwards and Upwards",
                                    "prevLabel"="Did you forget something?",
                                    "skipLabel"="Don't be a quitter"))
  })
   
}

ui <- material_page(
  
  material_side_nav(
    fixed = FALSE,
    
    # Place side-nav tabs within side-nav
    material_side_nav_tabs(
      side_nav_tabs = c(
        "Home" = "home"
      )
    )
  ),
    
  material_side_nav_tab_content(
    
    side_nav_tab_id = "home",
    
    h5("Hello") %>%
      introBox(
        data.step = 1,
        data.intro = "This is introjs"
      ),
    
    material_button(input_id = "help", label = "Help")
    
  )
  
)

shinyApp(ui, server)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant