shiny_widget_translation: Shiny Widget Translation

Description Usage Arguments Value

Description

A collection of functions to map REDCap question types as exported by the REDCap API to native Shiny widgets.

Usage

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
shinyREDCap_textInput(id, field_label, value = NULL, placeholder = NULL, ...)

shinyREDCap_dateInput(id, field_label, value = NULL, ...)

shinyREDCap_dropdown(id, field_label, required, choices, value = NULL, ...)

shinyREDCap_truefalse(id, field_label, required, value = NULL, ...)

shinyREDCap_yesno(id, field_label, required, value = NULL, ...)

shinyREDCap_radio(id, field_label, required, choices, value = NULL, ...)

shinyREDCap_checkbox(id, field_label, choices, value = NULL, ...)

shinyREDCap_notes(id, field_label, value = NULL, ...)

shinyREDCap_integer(id, field_label, value = NULL, ...)

Arguments

id

A string, containing a globally unique REDCap question identifier. Used to create a valid Shiny inputID.

field_label

A string containing the question being asked. May contain html formatting.

value

Default value or previous data if question has previously been answered

placeholder

Placeholder text to help a reviewer decide how to answer the question

...

Any additional parameters to pass to shiny widget inputs.

required

A string, "yes" or "no". Is this a required REDCap question type?

choices

REDCap choices for the question.

Value

A shiny input widget for the UI


thewileylab/shinyREDCap documentation built on Jan. 9, 2022, 4:09 a.m.