mk_checkboxes: A group of awesome checkboxes.

View source: R/mk-checkboxes.R

mk_checkboxesR Documentation

A group of awesome checkboxes.

Description

Create a group of pretty checkboxes used to toggle multiple choices independently.

Usage

mk_checkboxes(id, label = NULL, choices, selected = NULL)

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 names rather than values are displayed to the user. The values should be strings; other types (such as logicals and numbers) will be coerced to strings.

selected

The values that should be initially selected, if any. Default is NULL for no initial selection.

Value

A list of HTML elements that can be added to a UI definition.

See Also

checkbox_w_onoff_button_server for an example of how to use this function.

Examples

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

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