Carlos Tellez
Carlos Tellez

Reputation: 157

Move answer dropbox to the right in pickerInput in Shiny

i'd like to move my blue box to the right part of the sentence, i'm using pickerinput in Shiny app, This is my code: o you know how can i move to the right part?, or what iput i should use to do this?

Thanks !!

pickerInput(inputId = "answer11_",
                                     
            label = "Additional Side A defense limit: Minimum $500,000, $1,000,000 for larger risks",
            choices = c("Yes", "Minor Deficiency", "Mayor Deficiency", "No"),
            options = list(
            style = "btn-primary"))

This is my input now

Upvotes: 0

Views: 125

Answers (1)

mnist
mnist

Reputation: 6954

Yes, you can just set inline = TRUE

# Basic usage
library("shiny")
library(shinyWidgets)

ui <- fluidPage(
  pickerInput(
    inputId = "somevalue",
    label = "A label",
    choices = c("a", "b"),
    inline = TRUE
  ),
  verbatimTextOutput("value")
)

server <- function(input, output) {
  output$value <- renderPrint(input$somevalue)
}

shinyApp(ui, server)

Upvotes: 1

Related Questions