checkboxes_allon_alloff_server: Implement the control of checkboxes by all-on/all-off...

View source: R/checkboxes-allon-alloff.R

checkboxes_allon_alloff_serverR Documentation

Implement the control of checkboxes by all-on/all-off buttons.

Description

The server component of the Shiny module for creating a group of pretty checkboxes with an all-on and an all-off control buttons.

Usage

checkboxes_allon_alloff_server(
  id,
  label = NULL,
  choices,
  init_checked = choices
)

Arguments

id

String. The input slot that will be used to access the value.

label

String. Display label/title for the checkboxes group, or NULL (default) for no label.

choices

Character vector. List of values to show checkboxes for. If elements of the list are named then that name rather than the value is displayed to the user. The values should be strings; other types (such as logicals and numbers) will be coerced to strings.

init_checked

Character vector. List of values checked initially when displaying the group of checkboxes for the first time. Default is to have all choices checked initally.

Value

A module server function that can be called in a reactive env.

See Also

checkboxes_allon_alloff_ui for the UI, and mk_checkboxes for how the group checkboxes are made.

Examples

inst/examples/ex-checkboxes-allon-alloff.R

cabaceo/shinymod documentation built on Sept. 8, 2023, 12:23 p.m.