Skip to content

Commit a0d53ab

Browse files
committed
add response to react stimuli doc
1 parent 6b98b94 commit a0d53ab

1 file changed

Lines changed: 12 additions & 1 deletion

File tree

docs/designing-studies/react-stimulus.md

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -119,6 +119,17 @@ The parameters are an object; you can change the format to suit your needs.
119119
"instruction": "Two values are marked with dots. \n\nWhat percentage do you believe the smaller value represents relative to the larger value?",
120120
"type": "react-component",
121121
"path": "example-cleveland/assets/BarChart.tsx",
122+
"response": [
123+
{
124+
"id": "barChartAnswer",
125+
"prompt": "Your answer (1-100):",
126+
"required": true,
127+
"location": "belowStimulus",
128+
"type": "numerical",
129+
"min": 1,
130+
"max": 100
131+
}
132+
],
122133
"parameters": {
123134
"data": [
124135
{
@@ -311,4 +322,4 @@ import StructuredLinks from '@site/src/components/StructuredLinks/StructuredLink
311322
{name: "ReactComponent", url: "../../typedoc/interfaces/ReactComponent"},
312323
{name: "ReactiveResponse", url: "../../typedoc/interfaces/ReactiveResponse"}
313324
]}
314-
/>
325+
/>

0 commit comments

Comments
 (0)