fieldSets: Create sets of fields for display

View source: R/accessory.R

fieldSetsR Documentation

Create sets of fields for display

Description

Shiny apps can get cluttered with many inputs. This method wraps sets of fields in either a bsCollapse from shinyBS (if installed) or a simple div element with a title and class 'shinyngsFieldset' (which can then be used for styling)

Usage

fieldSets(id, fieldset_list, open = NULL, use_shinybs = TRUE)

Arguments

id

ID field to apply to the overall container

fieldset_list

A named list, each element containing one or more fields.

open

Only applicable for output with shinyBS, controls which panels are open by default. In most cases all should be left open (the default), since shiny doesn't receive the inputs of fields in collapsed elements.

use_shinybs

Use collapsible panels from shinyBS if installed

Value

list


pinin4fjords/shinyngs documentation built on Feb. 28, 2024, 10:19 a.m.