update_material_switch: Change the value of a material_switch on the client

Description Usage Arguments See Also Examples

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

Description

Change the value of a material_switch on the client.

Usage

1
update_material_switch(session, input_id, value = NULL)

Arguments

session

The session object passed to function given to shinyServer.

input_id

The input_id of the material_switch.

value

Boolean. The value to set for the material_switch.

See Also

material_switch

Examples

1
2
3
4
5
6
7
8
## Not run: 
update_material_switch(
  session,
  input_id = "example_switch",
  value = TRUE
)

## End(Not run)

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