DividerResponse
Defined in: parser/types.ts:1276
Extends​
Omit<BaseResponse,"prompt"|"infoText"|"secondaryText"|"required"|"requiredValue"|"requiredLabel"|"paramCapture"|"hidden"|"withDontKnow">
Properties​
| Property | Type | Description | Inherited from | Defined in |
|---|---|---|---|---|
delay? | number | Delay in milliseconds before an element activates. Must be non-negative; defaults to 0 meaning the element is always active. Minimum 0 | BaseResponse.delay | parser/types.ts:520 |
excludeFromRandomization? | boolean | Exclude response from randomization. If present, will override the responseOrder randomization setting in the components. Defaults to false. | BaseResponse.excludeFromRandomization | parser/types.ts:516 |
hidden? | undefined | - | - | parser/types.ts:1286 |
id | string | The id of the response. This is used to identify the response in the data file. | BaseResponse.id | parser/types.ts:486 |
infoText? | undefined | - | - | parser/types.ts:1280 |
location? | ConfigResponseBlockLocation | Controls the response location. These might be the same for all responses, or differ across responses. Defaults to belowStimulus | BaseResponse.location | parser/types.ts:498 |
onSubmit? | GlobalStoreAction[] | Apply these actions to the final submitted answer, in declared order. | BaseResponse.onSubmit | parser/types.ts:484 |
paramCapture? | undefined | - | - | parser/types.ts:1285 |
path? | string | Path under src/public/ to response code. Custom responses require a default React component. Any response code module may export validate(value, values, response) to return an error message, a boolean validity result, or null for valid input. It may separately export score(value, values, response, expected?) to return a boolean or a score from 0 to 1; null uses ordinary correct-answer matching. expected is the configured correct answer when correctness is checked. | BaseResponse.path | parser/types.ts:488 |
prompt? | undefined | - | - | parser/types.ts:1279 |
required? | undefined | - | - | parser/types.ts:1282 |
requiredLabel? | undefined | - | - | parser/types.ts:1284 |
requiredValue? | undefined | - | - | parser/types.ts:1283 |
secondaryText? | undefined | - | - | parser/types.ts:1281 |
style? | Styles | You can set styles here, using React CSSProperties, for example: {"width": 100} or {"width": "50%"} | BaseResponse.style | parser/types.ts:514 |
stylesheetPath? | string | The path to the external stylesheet file. | BaseResponse.stylesheetPath | parser/types.ts:512 |
type | "divider" | - | - | parser/types.ts:1277 |
visibleIf? | ResponseVisibilityCondition | Show this response only when another response in this component satisfies the condition. | BaseResponse.visibleIf | parser/types.ts:518 |
withDivider? | boolean | Renders the response with a trailing divider. If present, will override the divider setting in the components or uiConfig. | BaseResponse.withDivider | parser/types.ts:508 |
withDontKnow? | undefined | - | - | parser/types.ts:1287 |