Learn R Programming

shiny.semantic (version 0.3.0)

update_dropdown: Update dropdown Semantic UI component

Description

Change the value of a dropdown input on the client.

Usage

update_dropdown(
  session,
  name,
  choices = NULL,
  choices_value = choices,
  value = NULL
)

Arguments

session

The session object passed to function given to shinyServer.

name

The id of the input object

choices

All available options one can select from. If no need to update then leave as NULL

choices_value

What reactive value should be used for corresponding choice.

value

The initially selected value.