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

bulmasliderInput vertical display not perfect #8

Open
DivadNojnarg opened this issue Apr 15, 2018 · 2 comments
Open

bulmasliderInput vertical display not perfect #8

DivadNojnarg opened this issue Apr 15, 2018 · 2 comments

Comments

@DivadNojnarg
Copy link
Member

DivadNojnarg commented Apr 15, 2018

As shown below:

the label should be next to the slider. However, I think this is a problem coming from bulma itself.

slider_vetical

👍

@JohnCoene
Copy link
Member

JohnCoene commented Apr 15, 2018

Yes indeed. I guess one could wrap it in a column

  library(shiny)
  
  ui <- bulmaPage(
    bulmaContainer(
        bulmaColumns(
          bulmaColumn(bulmaSliderInput("slider", 10, 3, 150, orient = "vertical"), width = 1),
          bulmaColumn(plotOutput("plot"), width = 11)
        )
    )
  )
  
  server <- function(input, output){
    data <- reactive({
      rnorm(input$slider, 20, 4)
    })
    
    output$plot <- renderPlot({
      hist(data())
    })
  }
  
  shinyApp(ui, server)

@JohnCoene
Copy link
Member

Looking back, the slider was missing dependencies, looks much better now.

The vertical seems like a hack and does not look good in the official doc either.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants