update_material_switch {shinymaterial}R Documentation

Change the value of a material_switch on the client

Description

Change the value of a material_switch on the client.

Usage

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

## Not run: 
update_material_switch(
  session,
  input_id = "example_switch",
  value = TRUE
)

## End(Not run)

[Package shinymaterial version 1.2.0 Index]