Extensions/Assessment/resetResponse

Resets a question by clearing (resetting) the UI and setting the attempted status to false.

Supports all question types, however we set to multiple choice (mcq) by default. If you want all types, pass ['*'] as the second argument. If you want a subset, pass an array of type alias' as the second argument. See the type property for each type here https://reference.learnosity.com/questions-api/questiontypes

Parameters:
NameTypeAttributesDescription
optionsobject<optional>

Object of configuration options.

Properties
NameTypeAttributesDescription
labelstring<optional>

A custom label to use for the reset button.

typesarray<optional>

Which question types to support. ['*'] for all types.

Example
const options = {
    label: 'Reset question',
    types: ['mcq']
}

LT.init(itemsApp, {
    extensions: [
        { id: 'resetResponse', args: options },
    ],
});