sidebar_tabs: Create a Sidebar

View source: R/sidebar.R

sidebar_tabsR Documentation

Description

Create a Sidebar

Usage

sidebar_tabs(id = "sidebar", iconList = NULL, ...)

Arguments

id

The id of the sidebar, which must match the id of addSidebar. Default is "sidebar"

iconList

A list of icons to be shown, when the sidebar is collapsed. The list is required and must match the amount of sidebar_pane.

...

The individual sidebar_pane's.

Value

A shiny.tag with individual sidebar panes

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_pane()

Examples

## Not run: 
library(shiny)

# run example app showing a single sidebar
runApp(paste0(
  system.file("examples", package = "leaflet.extras2"),
  "/sidebar_app.R"
))

# run example app showing two sidebars
runApp(paste0(
  system.file("examples", package = "leaflet.extras2"),
  "/multi_sidebar_app.R"
))

## End(Not run)

leaflet.extras2 documentation built on April 3, 2025, 10:46 p.m.