R/Shiny/bs4Dashの基礎⑤


Controlbar(右側)の設定

こんな感じで実装。右側は名前的にコントロールパネル的な役割が良いかも?

library(shiny)
library(bs4Dash)
library(lubridate)

ui <- bs4DashPage(
  navbar = bs4DashNavbar(),
  sidebar = bs4DashSidebar(),
  body = bs4DashBody(),
  controlbar = bs4DashControlbar(
    dateRangeInput(
      inputId = "date",
      label = "Date:",
      start = today() - months(1),
      end = today() + months(1),
      min = today() - months(3),
      max = today() + months(3)
    ),
    title = "Controlbar",
    skin = "light"
  ),
  footer = bs4DashFooter(),
  title = "yono2844"
)

server <- function(input, output, session) {
}

shinyApp(ui = ui, server = server)