【发布时间】:2016-11-25 16:09:18
【问题描述】:
我正在尝试制作一个闪亮的 textAreaInput 框,它跨越我的网页的 100%,并在浏览器最小/最大化时调整大小。我可以通过提供参数宽度 = 100% 来制作具有此行为的简单 textInput。向 textAreaInput 提供相同的参数不会产生相同的行为,即使在 textInput 和 textAreaInput 手册页上具有相同的描述。这是期望的行为还是错误?
一个最小的工作示例 -
library(shiny)
shinyApp(
#UI
ui = fluidPage(
fluidRow(
column(12,
textAreaInput("big_box", "Big box", value = "", width = '100%', rows = 5, resize = "both")
)
),
fluidRow(
column(12,
textInput("long_box", "Long box", value = "", width = '100%')
)
)
),
#Server
server = function(input, output) {
}
)
示例输出 -
干杯
【问题讨论】: