material_radio: Create a materialize radio button

Description Usage Arguments Examples

Description

Build a materialize radio button.

Usage

1
2
3
4
5
material_radio(inputId, choices, selected = NULL, disabled = NULL,
  class = "with-gap", inline = FALSE, color = NULL)

update_material_radio(inputId, choices = NULL, selected = NULL,
  disabled = NULL, session = shiny::getDefaultReactiveDomain())

Arguments

inputId

String. The input identifier used to access the value.

choices

Named vector or a list. The radio names and underyling values as a named vector or a list with 'names' and 'values' elements with same lenght.

selected

String. The initially selected underyling value.

disabled

String. The radio button should be disabled?

class

String. Aditional class for checkbox. Values should be with-gap or NULL

inline

Logical. The option to create the radio buttons inline.

color

String. The color name of the radio buttons. Leave empty for 'teal lighten-1' color. Visit http://materializecss.com/color.html for a list of available colors.

session

Shiny default reactive domain.

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
require(materializer)
material_radio(
  inputId = "example_radio_button",
  choices = c(
    "Cake" = "c",
    "Pie" = "p",
    "Brownie" = "b"
  ),
  color = 'teal lighten-1'
)

TuSKan/materializer documentation built on May 17, 2019, 6:35 p.m.