bs4dash_layout {fresh}R Documentation

bs4Dash layout options

Description

bs4Dash layout options

Usage

bs4dash_layout(
  font_size_root = NULL,
  sidebar_width = NULL,
  sidebar_padding_x = NULL,
  sidebar_padding_y = NULL,
  sidebar_mini_width = NULL,
  control_sidebar_width = NULL,
  boxed_layout_max_width = NULL,
  screen_header_collapse = NULL,
  main_bg = NULL,
  content_padding_x = NULL,
  content_padding_y = NULL
)

Arguments

font_size_root

Font size root.

sidebar_width

Sidebar width.

sidebar_padding_x

Sidebar horizontal padding.

sidebar_padding_y

Sidebar vertical padding.

sidebar_mini_width

Width for mini sidebar.

control_sidebar_width

Control sidebar width (the one on the right).

boxed_layout_max_width

Max width used in boxed layout.

screen_header_collapse

When to show the smaller logo.

main_bg

Main background color.

content_padding_x

Main content horizontal padding.

content_padding_y

Main content vertical padding.

Value

a list that can be used in create_theme.

Examples


# Sidebar width
bs4dash_layout(
  sidebar_width = "400px"
)

if (interactive()) {

  library(shiny)
  library(bs4Dash)

  ui <- bs4DashPage(
    title = "bs4Dash big sidebar",
    navbar = bs4DashNavbar(),
    sidebar = bs4DashSidebar(
      title = "bs4Dash big sidebar",
      skin = "light",
      bs4SidebarMenu(
        bs4SidebarMenuItem(
          tabName = "tab1",
          text = "UI components"
        )
      )
    ),
    body = bs4DashBody(

      use_theme(create_theme(
        bs4dash_layout(
          sidebar_width = "600px"
        )
      )),

      bs4TabItems(
        bs4TabItem(
          tabName = "tab1",
          "Content tab 1"
        )
      )
    )
  )

  server <- function(input, output) {

  }

  shinyApp(ui, server)

}


[Package fresh version 0.2.1 Index]