Creates a page with a prompt and one button which, when clicked, advances to the next page. This is typically used for giving the participant information about the test.
one_button_page( body, admin_ui = NULL, button_text = "Next", on_complete = NULL )
Page body. Can be either a character scalar (e.g.
"Welcome to the test!") or an object of class "shiny.tag",
shiny::tags$p("Welcome to the test!").
Optional UI component for the admin panel.
Text to display on the button. Should be a character scalar.
Optional function to execute on leaving the page
(after successful validation).
The argument list should include
and any of:
state, the participant's state object;
answer, the participant's most recent answer;
input, the current page's Shiny input object;
session, the current Shiny session object;
opt, the test's option list as created by