【发布时间】:2021-04-26 16:36:45
【问题描述】:
如何在闪亮的仪表板中增加标签和输入之间的距离?
library(shiny)
ui <- shinyUI(
pageWithSidebar(
headerPanel("side-by-side"),
sidebarPanel(
fluidRow(
tags$head(
tags$style(type="text/css", "label.control-label, .selectize-control.single{ display: table-cell; text-align: center; vertical-align: middle; } .form-group { display: table-row;}")
),
column(2),
column(4,
selectInput(inputId = "options", label = "some text",
choices = list(a = 0, b = 1))
)
)),
mainPanel(
fluidRow(
h3("bla bla")
))
)
)
server <- shinyServer(function(input, output) { NULL })
shinyApp(ui = ui, server = server)
【问题讨论】: