Description Usage Arguments Examples
View source: R/input-select-period.R
Create a picker input to select aggregation period
1 2 | input_select_period(inputId, selected_period = NULL, periods = "All",
label = "aggregated_by", select_func = shiny::selectInput, ...)
|
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
|
... |
additional parameters passed on to |
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)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.