update_input: Update an Input Control with Column Names

View source: R/variables.R

update_inputR Documentation

Update an Input Control with Column Names

Description

Update an Input Control with Column Names

Usage

update_input(
  control,
  id,
  x,
  choices = colnames,
  exclude = reactive(NULL),
  select = TRUE,
  placeholder = FALSE
)

Arguments

control

An UI input updater.

id

A character string specifying the namespace.

x

A reactive matrix-like object.

choices

A function that takes x as a single argument and returns a character vector.

exclude

A reactive character vector of values to be excluded from choices.

select

A logical scalar: should all choices be selected?

placeholder

A logical scalar: should a placeholder be added?

Value

A reactive character vector of column names.

Side effect: change the value of an input control on the client.

See Also

update_checkbox_colnames(), update_selectize_colnames(), update_selectize_rownames()


kinesis documentation built on Sept. 9, 2025, 5:37 p.m.