update_material_dropdown: Change the value of a material_dropdown on the client

Description Usage Arguments See Also Examples

View source: R/update-shiny-material-dropdown.R

Description

Change the value of a material_dropdown on the client.

Usage

1
2
3
4
5
6
7
update_material_dropdown(
  session,
  input_id,
  value = NULL,
  choices = NULL,
  multiple = NULL
)

Arguments

session

The session object passed to function given to shinyServer.

input_id

The input_id of the material_dropdown.

value

The value to set for the material_dropdown.

choices

The choices to set for the material_dropdown.

multiple

Boolean. Can multiple items be selected?

See Also

material_dropdown

Examples

1
2
3
4
5
6
7
8
## Not run: 
update_material_dropdown(
  session,
  input_id = "example_dropdown",
  value = "New Text"
)

## End(Not run)

ericrayanderson/shinymaterial documentation built on Oct. 9, 2020, 5:21 p.m.