radio_buttons_ui: A group of pretty radio buttons.

View source: R/radio-buttons.R

radio_buttons_uiR Documentation

A group of pretty radio buttons.

Description

The UI component of the Shiny module for creating a group of pretty radio buttons for selecting one value among a list of values.

Usage

radio_buttons_ui(id, label = NULL, choices)

Arguments

id

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

label

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

choices

Character vector. List of values to show radio buttons for. If elements of the list are named then names rather than values are displayed. The values should be strings; other types (such as logicals and numbers) will be coerced to strings.

Value

Must use it together with its counterpart server.

See Also

radio_buttons_server for the server mk_radio_buttons for how to make a group of awesome radio buttons.

Examples

inst/examples/ex-radio-buttons.R

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