View source: R/test_elements.R
Creates month and year select page.
1 2 3 4 5 6 7 8 9 10 11 | month_and_year_select_page(
label,
prompt,
save_answer = TRUE,
validate = month_and_year_select_page.validate(),
hide_response_ui = FALSE,
response_ui_id = "response_ui",
on_complete = NULL,
admin_ui = NULL,
failed_validation_message = psychTestR::i18n("SELECT_MONTH_AND_YEAR")
)
|
label |
Label for the current page (character scalar). |
prompt |
Prompt to be displayed above the response choices.
Can be either a character scalar (e.g. "What is 2 + 2?")
or an object of class "shiny.tag", e.g. |
save_answer |
Whether or not to save the answer. |
validate |
Validation function to execute. |
hide_response_ui |
Whether to begin with the response interface hidden
(it can be subsequently made visible through Javascript,
using the element ID as set in |
response_ui_id |
HTML ID for the response user interface. |
on_complete |
Optional function to execute on leaving the page
(after successful validation).
The argument list should include |
admin_ui |
Optional UI component for the admin panel. |
failed_validation_message |
Message to be displayed when validation fails. |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.