Creates HTML code for n-alternative forced-choice response options.
make_ui_NAFC( choices, labels = NULL, hide = FALSE, arrange_vertically = length(choices) > 2L, id = "response_ui", button_style = "" )
Character vector of choices for the participant. If unnamed, then these values will be used both for button IDs and for button labels. If named, then values will be used for button IDs and names will be used for button labels.
Optional vector of labels for the NAFC choices.
NULL, will overwrite the names of
This vector of labels can either be a character vector
or a list of Shiny tag objects, e.g. as created by
Whether the response buttons should be hidden (possibly to be shown later).
Whether to arrange the response buttons vertically (the default) as opposed to horizontally.
HTML ID for the div containing the response buttons.
Button CSS style information (character scalar).