date_range_server: Date range module Server

Description Usage Arguments Value

View source: R/date_range.R

Description

A date range module UI that can accept dynamic inputs on the server-side declaration

Usage

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
date_range_server(
  input,
  output,
  session,
  label = "Select Dates:",
  start = Sys.Date() - 5 * 7,
  end = Sys.Date(),
  min = Sys.Date() - 365 * 3.5,
  max = Sys.Date(),
  width = "100%",
  updateVal = NA,
  disable = F,
  trig
)

Arguments

input

list of inputs used in the shiny application session

output

list of outputs used the shiny application session

session

The shiny app session object

label

The label of the dateRangeInput function. Converted to reactive later for enabling encapsulation

start

The default start date of the dateRangeInput function.

end

The default end date of the dateRangeInput function.

min

The minimum of numbers that can be used by the dateRangeInput function.

max

The maximum of numbers that can be used by the dateRangeInput function.

width

The width of the UI component

updateVal

reactive function used to parameterize the start and end date for updateDateRangeInput function.

disable

logical to disable the UI component when the trig parameter is found to be true

trig

logical reactive function that determines whether or not the update value should be triggered

Value

Numeric. Date Range


HarryRosen/hrimodules documentation built on Jan. 11, 2022, 12:36 a.m.