updateDaterangepicker: updateDaterangepicker

View source: R/daterangepicker.R

updateDaterangepickerR Documentation

updateDaterangepicker

Description

Change the start and end values of a daterangepicker on the client

Usage

updateDaterangepicker(
  session,
  inputId,
  label = NULL,
  start = NULL,
  end = NULL,
  min = NULL,
  max = NULL,
  icon = NULL,
  options = NULL,
  ranges = NULL,
  rangeNames = NULL,
  style = NULL,
  class = NULL
)

Arguments

session

The session object passed to function given to shinyServer.

inputId

The input ID

label

The label for the control, or NULL for no label.

start

The beginning date of the initially selected. Must be a Date / POSIXt or string. If NULL will default to the current day.

end

The end date of the initially selected date range. Must be a Date / POSIXt or string. If NULL will default to the current day.

min

The earliest date a user may select. Must be a Date or string

max

The latest date a user may select. Must be a Date or string

icon

Icon to display next to the label.

options

List of further options. See daterangepickerOptions

ranges

Set predefined date ranges the user can select from. Each key is the label for the range, and its value an array with two dates representing the bounds of the range. Alternatively, the labels can be specified via 'rangeNames'. If that argument is used, 'ranges' should not be named and 'rangeNames' will take precedence.

rangeNames

Optional character vector specifying the labels for predefined date ranges. If specified, it will override the names of 'ranges'.

style

Add CSS-styles to the input.

class

Custom class

See Also

Other daterangepicker Functions: daterangepickerOptions(), daterangepicker()


daterangepicker documentation built on May 31, 2023, 6:19 p.m.