Extensions add specific functionality to Items API. They rely on modules within LT being available.
--
This extension is used in scenarios where you want the user to attempt all questions, and check the answer, prior to navigating to the next question.
Autoscorable questions that have disabled auto scoring will be ignored.
Items API configuration overrides take precedence:
{
"config": {
"questions_api_init_options": {
"attribute_overrides": {
"instant_feedback": false
}
}
}
}
Methods
run(configopt)
Since
- 2.11.0
Example
import { LT } from '@caspingus/lt/src/assessment/core';
import * as checkAnswerValidation from '@caspingus/lt/src/assessment/extensions/validation/checkAnswerValidation
LT.init(itemsApp); // Set up LT with the Items API application instance variable
// These are the default values. Override as needed.
const config = {
message: {
header: 'Please check your answers',
body: '<p>Before moving on, attempt all questions and click the "Check Answer" button.</p><p>Note: the "Check Answer" button may not appear on every question.</p>'
}
}
checkAnswerValidation.run(config);
Parameters:
Name | Type | Attributes | Description |
---|---|---|---|
config |
object |
<optional> |
Object of configuration options. Currently only supports a message object with
2 keys, |