openSidebar: Open the Sidebar by ID

View source: R/sidebar.R

openSidebarR Documentation

Open the Sidebar by ID

Description

Open the Sidebar by ID

Usage

openSidebar(map, id, sidebar_id = NULL, ns = NULL)

Arguments

map

A leaflet map widget

id

The id of the sidebar_pane to open.

sidebar_id

The id of the sidebar (per sidebar_tabs). Defaults to NULL such that the first sidebar is used.

ns

The namespace function, if used in Shiny modules.

Value

the new map object

See Also

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


leaflet.extras2 documentation built on Aug. 21, 2023, 5:08 p.m.