Skip to contents

One option of a radio_set().

Super class

Widget -> RadioButton

Public fields

focusable

Radio buttons can be focused.

value

The value this option stands for.

Active bindings

selected

Is this option selected? (read-only; use the set)

label

The label (reactive).

Methods

Inherited methods


RadioButton$new()

Create a radio button. See radio_button().

Usage

RadioButton$new(
  label,
  value = label,
  id = NULL,
  classes = NULL,
  style = NULL,
  disabled = FALSE
)

Arguments

label

Label.

value

Value.

id, classes, style, disabled

See Widget.


RadioButton$default_style()

The built-in style.

Usage

RadioButton$default_style()


RadioButton$default_bindings()

Space and Enter select the option.

Usage

RadioButton$default_bindings()


RadioButton$action_choose()

Select this option in its radio set.

Usage

RadioButton$action_choose()


RadioButton$on_click()

Clicking selects.

Usage

RadioButton$on_click(event)

Arguments

event

A MouseEvent.


RadioButton$render()

The dot and the label.

Usage

RadioButton$render()


RadioButton$clone()

The objects of this class are cloneable with this method.

Usage

RadioButton$clone(deep = FALSE)

Arguments

deep

Whether to make a deep clone.