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

Table of contents

Properties

Properties

correctAnswer

Optional correctAnswer: Answer[]

Defined in

types.ts:206


description

Optional description: string

Defined in

types.ts:208


instruction

Optional instruction: string

Defined in

types.ts:209


instructionLocation

Optional instructionLocation: "sidebar" | "aboveStimulus" | "belowStimulus"

Defined in

types.ts:205


meta

Optional meta: Record<string, unknown>

Defined in

types.ts:207


nextButtonLocation

Optional nextButtonLocation: "sidebar" | "aboveStimulus" | "belowStimulus"

Defined in

types.ts:204


nextButtonText

Optional nextButtonText: string

Defined in

types.ts:203


response

response: Response[]

Defined in

types.ts:200


title

Optional title: string

Defined in

types.ts:210