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:
Name | Type | Attributes | Description | ||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
options | object | <optional> | Object of configuration options. Properties
|
Example
const options = {
label: 'Reset question',
types: ['mcq']
}
LT.init(itemsApp, {
extensions: [
{ id: 'resetResponse', args: options },
],
});