【发布时间】:2017-09-05 11:52:04
【问题描述】:
有没有办法显示dateRangeInput() 小部件的两个输入字段,而不是并排排列,而是像堆栈一样垂直排列,即start = <date> 在@987654323 的顶部@?
我查看了shiny 文档,但找不到完成此任务的方法,而且我还不太擅长 CSS/Javascript。
提前致谢。
更新:
为了澄清,这是我的应用程序中的一个 sn-p:
app <- shinyApp(
ui = fluidPage(
sidebarLayout(
sidebarPanel(
width = 3,
# --- code based on selectInput() with choices linking to conditional panels ---
tags$div(title = "Request data for a given time period",
conditionalPanel(
condition = "input.outputstyle == 'Density plot (week)'",
dateRangeInput("daterange",
label = "Date Range: ",
start = Sys.Date() - 8,
end = Sys.Date() - 1,
max = Sys.Date(),
format = "d M",
separator = "--"))),
# --- more code for other conditional panels, etc. ---
server = function(input, output) {
# rest of code
}
)
【问题讨论】: