Select-class: Select widget

SelectR Documentation

Select widget

Description

A drop-down choice. See dropdown().

Super class

Widget -> Select

Public fields

focusable

Selects can be focused.

prompt

Text shown when nothing is selected.

Active bindings

value

The selected value or NULL (reactive; sends "dropdown.changed").

choices

The choice values.

Methods

Public methods

Inherited methods

Select$new()

Create a select. See dropdown().

Usage
Select$new(
  choices,
  value = NULL,
  prompt = "Select",
  id = NULL,
  classes = NULL,
  style = NULL,
  disabled = FALSE
)
Arguments
choices

Choices.

value

Initial value.

prompt

Prompt.

id, classes, style, disabled

See Widget.


Select$default_style()

The built-in style.

Usage
Select$default_style()

Select$default_bindings()

Enter, Space and Down open the list.

Usage
Select$default_bindings()

Select$open()

Open the drop-down list.

Usage
Select$open()

Select$action_open()

Action used by the bindings.

Usage
Select$action_open()

Select$on_click()

Clicking opens the list.

Usage
Select$on_click(event)
Arguments
event

A MouseEvent.


Select$render()

The selected label and an arrow.

Usage
Select$render()

Select$clone()

The objects of this class are cloneable with this method.

Usage
Select$clone(deep = FALSE)
Arguments
deep

Whether to make a deep clone.


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