shinymaterial (version 1.2.0)

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

Description

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

Usage

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

Run this code
# NOT RUN {
update_material_button(
  session,
  input_id = "example_button",
  value = "New Text",
  icon = "stop",
  disabled = FALSE
)
# }

Run the code above in your browser using DataLab