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

RenderUI issue with material_slider #123

Open
ghost opened this issue Aug 11, 2020 · 2 comments
Open

RenderUI issue with material_slider #123

ghost opened this issue Aug 11, 2020 · 2 comments

Comments

@ghost
Copy link

ghost commented Aug 11, 2020

The material_slider tooltip doesn't appear while using renderUI

@jameswcraig
Copy link

Hi @ericrayanderson I'm also attempting to use material_slider with renderUI and can confirm that it is indeed not working. Tooltip does not appear and slider input values are NULL.

See reprex below:

ui <- material_page(
  uiOutput("sliders")
  
)

server <- function(input, output, session){
  
  output$sliders <- renderUI({
    render_material_from_server(
      tagList(
        material_slider(input_id = paste0("slider", 1), label =  paste0("slider", 1), min_value = 0, max_value = 20, step_size = 1, initial_value = 1),
        material_slider(input_id = paste0("slider", 2), label = paste0("slider", 2), min_value = 0, max_value = 20, step_size = 1, initial_value = 1),
      )
    )
  })
  
  observe({
    print(input$slider1)
    print(input$slider2)
  })
}

shinyApp(ui, server)

As always, thanks again for your work on this package and looking into this issue further.
-James

@garthtarr
Copy link

garthtarr commented Apr 9, 2021

Related to #114 - I've also had a go and can't get this working, same sort of issue for material_radio_button()

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

2 participants