ch_input_time_compound: Creates a collection of shiny objects to wrap a compound...

Description Usage Arguments Details Value

View source: R/ch_input_time_compuound.R

Description

The list will contain:

Usage

1
ch_input_time_compound(id, label = "", step = c(1, 5), default = c(1, 30))

Arguments

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

Details

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

Value

list containing ui_controller, ui_view, and server_model


ijlyttle/shinychord documentation built on May 18, 2019, 3:41 a.m.