update_ds_suggestion: Update Suggestion Input

View source: R/ds-suggestion.R

update_ds_suggestionR Documentation

Update Suggestion Input

Description

Change the value or choices from the server.

Usage

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

Arguments

session

The Shiny session object

inputId

The input ID of the suggestion component

value

The new value

choices

New character vector of choices

Value

Called for its side effect. Returns NULL invisibly.

Examples

## Not run: 
update_ds_suggestion(session, "fruit", value = "Apple")

## End(Not run)

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