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_controller
shiny::taglist
of ui elements for the controller
ui_view
shing::taglist
of ui elements for the view
server_model
function 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:
hours
shiny::numericInput
used to set the number of hours
minutes
shiny::numericInput
used to set the number of minutes
The list ui_view
will have members:
view_text
shiny::textOutput
displays vector of hours and minutes
The function server_model()
will be called from your server function.
Its arguments are:
input, output, session
input, output, session values passed from your server function
rctval_input, item_input
shiny::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.