Extensions add specific functionality to Items API. They rely on modules within LT being available.
--
Adds a prefix to all multiple-choice labels (correct answer and distractors).
Ignores block UI and radio button under option.
Supports
- multi-select MCQs
- shuffle responses
- columns
Methods
run(mask, suffix, prefixes)
Sets up an item load listener to add a prefix to all MCQ possible response labels.
Since
- 0.6.0
Example
import { LT } from '@caspingus/lt/src/assessment/index';
LT.init(itemsApp); // Set up LT with the Items API application instance variable
LT.extensions.mcqLabelPrefix.run();
Parameters:
Name | Type | Description |
---|---|---|
mask |
string | Which mask pattern to use. Supports |
suffix |
string | Any suffix you want added to the label prefix. Defaults to |
prefixes |
array | Array of custom string prefixes to use. |