R/dashboard_sidebar.R

Defines functions dashboard_sidebar

dashboard_sidebar <- function() {
  bs4Dash::dashboardSidebar(
    skin = "light",
    inputId = "sidebarState",
    # collapsed = TRUE,
    # disable = TRUE,
    elevation = 1,
    bs4Dash::sidebarMenu(
      id = "sidebar",
      bs4Dash::menuItem(
        tabName = "tab_1",
        text = paste0("Wordle Helper v", pkgload::pkg_version()),
        icon = icon("file-word")
      ),
      tags$br(),
      tags$a(
        href = "https://github.com/KoderKow/wordle",
        target = "_blank",
        icon("github", "fa-2x")
      )
    )
  )
}
KoderKow/wordle documentation built on Feb. 7, 2022, 10:08 a.m.