input_button: Button and link inputs

View source: R/input-button.R

input_buttonR Documentation

Button and link inputs

Description

Button inputs are useful as triggers for reactive or observer expressions. The reactive value of a button input begins as NULL, but subsequently is the number of clicks.

Usage

input_button(id, label, ...)

update_button(
  id,
  label = NULL,
  value = NULL,
  disable = NULL,
  session = get_current_session()
)

Arguments

id

A character string. specifying the id of the reactive input.

label

A character string specifying the label text on the button or link input.

...

Additional named arguments passed as HTML attributes to the parent element.

icon

An icon, see bsicons::bs_icon.

See Also

Other inputs: fileInput(), input_checkbox(), input_checkbox_group(), input_chip(), input_form(), input_list_group(), input_menu(), input_radio_group(), radiobarInput(), rangeInput(), selectInput(), textInput()


nteetor/dull documentation built on July 4, 2025, 8:52 a.m.