View source: R/widget-button.R
| button | R Documentation |
A focusable button. Pressing Enter or Space while it has focus sends a
"button.pressed" message, which you can handle with
on("button.pressed", "#id", function(event, app) ...).
button(
label = "Button",
id = NULL,
classes = NULL,
style = NULL,
disabled = FALSE,
variant = "default",
on_press = NULL
)
label |
Button text. |
id |
Optional identifier (for |
classes |
Optional classes (for |
style |
A |
disabled |
Disabled buttons cannot be focused or pressed. |
variant |
Colour variant: |
on_press |
Optional |
A Button widget.
button("Run", id = "run", variant = "primary")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.