Extensions/Assessment/mcqLabelPrefix

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.

Parameters:
NameTypeDescription
maskstring

Which mask pattern to use. Supports upperAlpha (default), lowerAlpha, and numeric.

suffixstring

Any suffix you want added to the label prefix. Defaults to ..

prefixesarray

Array of custom string prefixes to use.

Since
0.6.0
Example
import { LT } from '@caspingus/lt/assessment';

LT.init(itemsApp); // Set up LT with the Items API application instance variable
LT.extensions.mcqLabelPrefix.run();