toggle_panel_ui: Create a toggle panel in the UI

View source: R/utils_toggle_panel.R

toggle_panel_uiR Documentation

Create a toggle panel in the UI

Description

A toggle panel is a panel with show/hide functionality by clicking on the title and additional info by clicking on an info button. 'toggle_panel_ui()' creates the UI definition for the panel.

Usage

toggle_panel_ui(
  id,
  ...,
  label = NULL,
  icon = NULL,
  tag_fn = NULL,
  init_visible = TRUE
)

Arguments

id

The UI element ID (technically the ID of the title)

...

Panel content

label

The panel title

icon

An icon to display to the right of the title

tag_fn

A tag to wrap the label and icon

init_visible

Should the panel initialize as visible or invisible?

Value

A UI element


jesse-smith/covidscreen documentation built on June 15, 2022, 7:46 p.m.