| Button | R Documentation |
A focusable button. See button().
Widget -> Button
paint_statesPressing only repaints.
focusableButtons can be focused.
variantColour variant.
press_durationSeconds the pressed state stays visible.
labelThe button text (reactive).
pressedIs the button showing its pressed state?
Widget$add_class()Widget$ancestors()Widget$animate()Widget$arrange_children()Widget$bind()Widget$bind_reactive()Widget$bindings()Widget$blur()Widget$capture_mouse()Widget$child_clip()Widget$clear()Widget$computed_style()Widget$content_height()Widget$content_width()Widget$focus()Widget$format()Widget$get_state()Widget$has_class()Widget$invalidate()Widget$invalidate_paint()Widget$is_displayed()Widget$is_enabled()Widget$layout_descend()Widget$layout_differs()Widget$matches()Widget$mount()Widget$on()Widget$paint()Widget$post_message()Widget$print()Widget$query()Widget$query_one()Widget$refresh()Widget$release_mouse()Widget$remove()Widget$remove_children()Widget$remove_class()Widget$render_lines()Widget$replace()Widget$run_action()Widget$run_process()Widget$run_worker()Widget$set()Widget$set_interval()Widget$set_state()Widget$set_timeout()Widget$toggle_class()Widget$walk()Button$new()Create a button.
Button$new( label = "Button", id = NULL, classes = NULL, style = NULL, disabled = FALSE, variant = "default" )
labelButton text, or a function of no arguments that returns it
(re-evaluated when the signal()s it reads change).
id, classes, style, disabledSee Widget.
variantOne of "default", "primary", "success",
"warning", "error".
Button$default_style()The built-in style.
Button$default_style()
Button$default_bindings()Enter and space press the button.
Button$default_bindings()
Button$render()The button text.
Button$render()
Button$press()Press the button: shows the pressed state briefly and
sends a "button.pressed" message. Does nothing when disabled.
Button$press()
TRUE if the button was pressed.
Button$on_click()A left click presses the button.
Button$on_click(event)
eventA MouseEvent.
Button$action_press()Action used by the default bindings.
Button$action_press()
Button$pseudo_states()Active states: focus, disabled and pressed.
Button$pseudo_states()
Button$clone()The objects of this class are cloneable with this method.
Button$clone(deep = FALSE)
deepWhether to make a deep clone.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.