Checkbox-class: Checkbox widget

CheckboxR Documentation

Checkbox widget

Description

A labelled boolean toggle. See checkbox().

Super class

Widget -> Checkbox

Public fields

focusable

Checkboxes can be focused.

Active bindings

value

TRUE or FALSE (reactive; sends "checkbox.changed").

label

The label (reactive).

Methods

Public methods

Inherited methods

Checkbox$new()

Create a checkbox. See checkbox().

Usage
Checkbox$new(
  label = "",
  value = FALSE,
  id = NULL,
  classes = NULL,
  style = NULL,
  disabled = FALSE
)
Arguments
label

Label.

value

Initial state.

id, classes, style, disabled

See Widget.


Checkbox$default_style()

The built-in style.

Usage
Checkbox$default_style()

Checkbox$default_bindings()

Space and Enter toggle.

Usage
Checkbox$default_bindings()

Checkbox$toggle()

Toggle the value (sends "checkbox.changed").

Usage
Checkbox$toggle()

Checkbox$action_toggle()

Action used by the bindings.

Usage
Checkbox$action_toggle()

Checkbox$on_click()

Clicking toggles.

Usage
Checkbox$on_click(event)
Arguments
event

A MouseEvent.


Checkbox$render()

The box and the label.

Usage
Checkbox$render()

Checkbox$clone()

The objects of this class are cloneable with this method.

Usage
Checkbox$clone(deep = FALSE)
Arguments
deep

Whether to make a deep clone.


termr documentation built on Oct. 21, 2026, 5:13 p.m.