Interface: BaseIndividualComponent
The BaseIndividualComponent interface is used to define the required fields for all components. The only exception is the ContainerComponent, which is used to group components together.
All components must include the response field, which is an array of Response interfaces. There are additional optional fields that can be included in a component that help layout the task. These include the nextButtonText, nextButtonLocation, instructionLocation, correctAnswer. There are other fields that can be included in a component that are used to identify the task in the admin panel. These include the meta, description, instruction, and title fields.
Hierarchy
-
BaseIndividualComponent
Table of contents
Properties
- correctAnswer
- description
- instruction
- instructionLocation
- meta
- nextButtonLocation
- nextButtonText
- response
- title
Properties
correctAnswer
• Optional
correctAnswer: Answer
[]
Defined in
description
• Optional
description: string
Defined in
instruction
• Optional
instruction: string
Defined in
instructionLocation
• Optional
instructionLocation: "sidebar"
| "aboveStimulus"
| "belowStimulus"
Defined in
meta
• Optional
meta: Record
<string
, unknown
>
Defined in
nextButtonLocation
• Optional
nextButtonLocation: "sidebar"
| "aboveStimulus"
| "belowStimulus"
Defined in
nextButtonText
• Optional
nextButtonText: string
Defined in
response
• response: Response
[]
Defined in
title
• Optional
title: string