end_section: End a section.

end_sectionR Documentation

End a section.

Description

This renders a button to submit the answers to the section. When users click the button, a modal dialog is shown for the user to confirm they want to submit the section.

Usage

end_section(
  label = "Submit Question",
  confirm_dialog,
  success_dialog,
  error_dialog,
  btn_class = "btn-primary btn-lg",
  container = div
)

Arguments

label

submission button text.

confirm_dialog

a modal dialog created with shiny::modalDialog() to display for confirming submission of the section. If NULL, or FALSE, no confirmation will be shown. This dialog needs to have at least one button with the data-exam attribute set to continue!

success_dialog

a modal dialog created with shiny::modalDialog() to display after successful submission of the section. If NULL, or FALSE, no dialog will be shown.

error_dialog

a modal dialog created with shiny::modalDialog() to display after successful submission of the section. If NULL, or FALSE, no dialog will be shown. This dialog needs to have at least one button with the data-exam attribute set to reload!

container

a function to generate an HTML element to contain the button.

section

section object.

Value

section end elements.


dakep/stat305templates documentation built on Nov. 27, 2022, 8:23 a.m.