Description Usage Arguments See Also Examples
Change the value text, icon of a material_button on the client. Allow to disable the button and then enable.
1 2 3 4 5 6 7 | update_material_button(
session,
input_id,
label = NULL,
icon = NULL,
disabled = NULL
)
|
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. |
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)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.