Learn R Programming

leaflet.extras2 (version 1.0.0)

sidebar_pane: Create a Sidebar Pane

Description

Create a Sidebar Pane

Usage

sidebar_pane(
  title = "Sidebar Title",
  id = NULL,
  icon = icon("caret-right"),
  ...
)

Arguments

title

A title for the sidebar panel

id

An id for the sidebar panel

icon

An icon for the sidebar panel

...

List of elements to include in the panel

Value

A shiny.tag with sidebar-specific HTML classes

References

https://github.com/Turbo87/sidebar-v2, https://github.com/Turbo87/sidebar-v2/blob/master/doc/usage.md

See Also

Other Sidebar Functions: addSidebar(), closeSidebar(), openSidebar(), removeSidebar(), sidebar_tabs()

Examples

Run this code
# NOT RUN {
library(shiny)
sidebar_pane(id = "id", icon = icon("cars"), tags$div())
# }

Run the code above in your browser using DataLab