Skip to contents

The native counterpart of shiny::updateDateInput(), which cannot reach these controls.

Usage

update_bs_date_input(
  id,
  value = NULL,
  min = NULL,
  max = NULL,
  session = shiny::getDefaultReactiveDomain()
)

update_bs_date_range_input(
  id,
  start = NULL,
  end = NULL,
  min = NULL,
  max = NULL,
  session = shiny::getDefaultReactiveDomain()
)

Arguments

id

Input id.

value

New date, or NA to clear the field.

min, max

New bounds.

session

The Shiny session.

start, end

New start / end dates, or NA to clear either field.

Value

Nothing, called for its side effect.

See also

Examples

if (interactive()) update_bs_date_input("day", value = Sys.Date())