Learn R Programming

nextGenShinyApps (version 2.1)

sidebarPanel: Create the sidebar panel

Description

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

Usage

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

Value

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

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

Examples

Run this code
# \donttest{
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) {}
  )
}
# }

Run the code above in your browser using DataLab