update_material_button {shinymaterial}R Documentation

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

## Not run: 
update_material_button(
  session,
  input_id = "example_button",
  value = "New Text",
  icon = "stop",
  disabled = FALSE
)

## End(Not run)

[Package shinymaterial version 1.2.0 Index]