mk_radio_buttons: A group of awesome radio buttons.

View source: R/mk-radio-buttons.R

mk_radio_buttonsR Documentation

A group of awesome radio buttons.

Description

Create a group of pretty radio buttons used to select an item from a list.

Usage

mk_radio_buttons(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

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

Examples

inst/examples/ex-radio-buttons.R

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