update_material_button: Change the text, icon of a material_button on the client....

Description Usage Arguments See Also Examples

Description

Change the value text, icon of a material_button on the client. Allow to disable the button and then enable.

Usage

1
2
3
4
5
6
7
update_material_button(
  session,
  input_id,
  label = NULL,
  icon = NULL,
  disabled = NULL
)

Arguments

session

The session object passed to function given to shinyServer.

input_id

The input_id of the material_button.

label

The new label of the material_button.

icon

The new icon of the material_button. If not set, icon disappear.

disabled

NULL by default (do nothing), if TRUE the button is disable and if FALSE, enable.

See Also

material_button

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
## Not run: 
update_material_button(
  session,
  input_id = "example_button",
  value = "New Text",
  icon = "stop",
  disabled = FALSE
)

## End(Not run)

shinymaterial documentation built on Sept. 1, 2020, 1:07 a.m.