如何为fluidRow titlePanel R Shiny提供多行?

时间:2018-06-12 22:44:25

标签: r shiny

有没有办法在R Shiny中为titlePanel渲染2行?例如,下面只渲染第一个fluidRow

titlePanel(
    fluidRow(
      column(6,div(style = "height:200px;background-color: yellow;", "Topleft")),
      column(6,div(style = "height:100px;background-color: blue;", "Topright"))),
    fluidRow(
      column(6,div(style = "height:100px;background-color: green;", "Bottomleft")),
      column(6,div(style = "height:150px;background-color: red;", "Bottomright")))
)

1 个答案:

答案 0 :(得分:2)

使用标题面板尝试:

headerPanel(
    fluidRow(
      column(6,div(style = "height:200px;background-color: yellow;", "Topleft")),
      column(6,div(style = "height:100px;background-color: blue;", "Topright"))),
    fluidRow(
      column(6,div(style = "height:100px;background-color: green;", "Bottomleft")),
      column(6,div(style = "height:150px;background-color: red;", "Bottomright")))
)