input_select_period: Create a picker input to select aggregation period

Description Usage Arguments Examples

View source: R/input-select-period.R

Description

Create a picker input to select aggregation period

Usage

1
2
input_select_period(inputId, selected_period = NULL, periods = "All",
  label = "aggregated_by", select_func = shiny::selectInput, ...)

Arguments

inputId

the input slot that will be used to access the value.

selected_period

a string indicating selected period

periods

a named vector of periods.

label

a string to display as label.

select_func

a select input function. Either selectInput or pickerInput

...

additional parameters passed on to select_func

Examples

1
2
3
4
5
6
7
## Not run: 
input_select_period('period') %>%
  shinybones::preview_component()
input_select_period('period', selected_period = 'week') %>%
  shinybones::preview_component()

## End(Not run)

ramnathv/shinymetrics documentation built on June 29, 2020, 10:39 p.m.