update_ds_select: Update Select

View source: R/ds-input.R

update_ds_selectR Documentation

Update Select

Description

Change the selected value or choices from the server.

Usage

update_ds_select(
  session = shiny::getDefaultReactiveDomain(),
  inputId,
  value = NULL,
  choices = NULL
)

Arguments

session

The Shiny session object

inputId

The input ID

value

The new selected value

choices

New named vector of choices

Value

Called for its side effect. Returns NULL invisibly.

Examples

## Not run: 
update_ds_select(session, "country", value = "no")

## End(Not run)

shinyds documentation built on Aug. 22, 2026, 5:08 p.m.