Is it possible to create numericInput() for brilliant where the field is next to the label (and not below it by default).
Here is a simple example:
library(shiny) ui <- shinyUI(fluidPage( titlePanel("Shiny with lots of numericInput()"), sidebarLayout( sidebarPanel( fluidRow( column(6, numericInput("a1", label = "A1", value = 1)), column(6, numericInput("b1", label = "B1", value = 1)) ), fluidRow( column(6, numericInput("a2", label = "A2", value = 2)), column(6, numericInput("b2", label = "B2", value = 2)) ) ), mainPanel( p('something interesting') ) ) )) server <- function(input, output) {} shinyApp(ui, server)
This results in 4 lines: the first line for the labels "A1" and "B1", the second line for the corresponding fields, etc. This does not help if I try to adjust the width numericInput() parameter.
(Unfortunately, I really don't know html and css to directly modify the class of the input widget.)
Here is a similar problem. But I can handle the same line with fluidRow (), I want the labels to be on the same line.
source share