Move answer dropbox to the right in pickerInput in Shiny

122 views Asked by At

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

1

There are 1 answers

0
mnist On

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)