make_ui_multi_radiobutton_NAFC: Make multiple NAFC radiobuttons with the same choices

View source: R/test_elements.R

make_ui_multi_radiobutton_NAFCR Documentation

Make multiple NAFC radiobuttons with the same choices

Description

Creates the HTML code for multiple n-alternative forced choice response radiobutton options

Usage

make_ui_multi_radiobutton_NAFC(
  label,
  prompts,
  choices,
  labels = NULL,
  trigger_button_text = "Continue",
  hide = FALSE,
  random_order = FALSE,
  id = "response_ui"
)

Arguments

label

(Character scalar) Label for the current page.

prompts

(Character vector) Prompts to be displayed over the response choices

choices

(Character vector) Choices for the participant. If unnamed, then these values will be used both for radiobutton IDs and for button labels. If named, then values will be used for button IDs and names will be used for button labels.

labels

Optional vector of labels for the NAFC radiobutton choices. If not NULL, will overwrite the names of choices. This vector of labels can either be a character vector or a list of Shiny tag objects, e.g. as created by shiny::HTML().

trigger_button_text

(Character scalar) Text for the trigger button.

hide

(Boolean scalar) Whether the radiobuttons should be hidden (possibly to be shown later).

random_order

(Boolean scalar) Whether the order of the items should be randomized.

id

(Character scalar) HTML ID for the div containing the radiobuttons.


KilianSander/groovescale documentation built on July 21, 2023, 11:04 p.m.