mirror of
https://github.com/jspsych/jsPsych.git
synced 2025-05-12 08:38:11 +00:00
survey docs
This commit is contained in:
parent
7a0b02993a
commit
0857c8a1b4
@ -8,13 +8,7 @@ This table lists the parameters associated with this plugin. Parameters with a d
|
||||
|
||||
Parameter | Type | Default Value | Description
|
||||
----------|------|---------------|------------
|
||||
questions | array | *undefined* | An array of objects, each object represents a question that appears on the screen. Each object contains a prompt, labels and required parameter that will be applied to the question. See examples below for further clarification.
|
||||
|
||||
`prompt`: Type string, default value is *undefined*. The strings are the question that will be associated with a slider.
|
||||
|
||||
`labels`: Type array, default value is *undefined*. Each array element is an array of strings. The innermost arrays contain a set of labels to display for an individual question. If you want to use blank responses and only label the end points or some subset of the options, just insert a blank string for the unlabeled responses.
|
||||
|
||||
`required`: Type boolean, default value is false. Makes answering questions required.
|
||||
questions | array | *undefined* | An array of objects, each object represents a question that appears on the screen. Each object contains a prompt, labels and required parameter that will be applied to the question. See examples below for further clarification.`prompt`: Type string, default value is *undefined*. The strings are the question that will be associated with a slider.`labels`: Type array, default value is *undefined*. Each array element is an array of strings. The innermost arrays contain a set of labels to display for an individual question. If you want to use blank responses and only label the end points or some subset of the options, just insert a blank string for the unlabeled responses.`required`: Type boolean, default value is false. Makes answering questions required.
|
||||
preamble | string | empty string | HTML formatted string to display at the top of the page above all the questions.
|
||||
button_label | string | 'Button label' | Label of the button.
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user