sidebarPanel: Create the sidebar panel

View source: R/sidebar.R

sidebarPanelR Documentation

Create the sidebar panel

Description

Creates an advanced sidebar panel with colors corresponding to a chosen theme style

Usage

sidebarPanel(..., title = "TitleApp", footer = FALSE)

Arguments

...

The elements to include within the body of the sidebar

title

Title of the sidebar content

footer

Whether or not to enable the footer content

Value

An HTML containing elements of a sidebar to be embedded in a page

Note

This global layout can be applied to a variety of shiny app and dashboard, with or without a sidebar. See the example below.

Examples


if (interactive()) {
  library(shiny)
  library(nextGenShinyApps)

  shiny::shinyApp(
    ui = fluidPage(
      style = "7",
      header = NULL,
      sidebar = sidebarPanel(
        title = "myApp",
        "Sample sidebar contents",
        footer = FALSE
      ),
      "Plain content"
    ),
    server = function(input, output) {}
  )
}


nextGenShinyApps documentation built on Sept. 11, 2024, 7:38 p.m.