Description Usage Arguments Details Value
View source: R/ch_input_time_compuound.R
The list will contain:
1 | ch_input_time_compound(id, label = "", step = c(1, 5), default = c(1, 30))
|
id |
character, tag to prepend to the input and output id's |
label |
character, label for the compound input |
step |
numeric vector for the steps, (hours, minutes) |
default |
numeric lubridate duration for the default |
ui_controllershiny::taglist of ui elements for the controller
ui_viewshing::taglist of ui elements for the view
server_modelfunction with reactive code
The list returned by this function has to be available to both the ui and the server.
If not using the shinyApp formulation, perhaps global.R could be useful.
The list ui_controller will have inputs:
hoursshiny::numericInput used to set the number of hours
minutesshiny::numericInput used to set the number of minutes
The list ui_view will have members:
view_textshiny::textOutput displays vector of hours and minutes
The function server_model() will be called from your server function.
Its arguments are:
input, output, sessioninput, output, session values passed from your server function
rctval_input, item_inputshiny::reactiveValues object, character string.
rctval_input[[item_input]] lubridate duration, output - number of seconds
list containing ui_controller, ui_view, and server_model
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.