Skip to content

Matching's Wiki Page

Chuck Lorenz edited this page Mar 26, 2015 · 5 revisions

#adapt-contrib-matching

Matching is a question component bundled with the Adapt framework.
The learner chooses their answer/s from one or more drop-downs. Upon submission, feedback is provided via the tutor extension, if installed. Feedback can be provided for correct, incorrect and partially correct answers.

##Installation

Matching is bundled with the Adapt authoring tool. Its installation is also a part of the typical Adapt framework installation.

If Matching has been uninstalled from the Adapt framework, it may be reinstalled. With the Adapt Command Line Interface installed, run the following from the command line:
adapt install adapt-contrib-matching

Alternatively, this component can also be installed by adding the following line of code to the adapt.json file:
"adapt-contrib-matching": "*"
Then running the command:
adapt install
(This second method will reinstall all plugins listed in adapt.json.)

##Usage

Once installed, the component can be used to create a question with one or more drop-down based answers. Once the learner selects all their answers, the question may be submitted.

Upon submission, feedback is provided via the tutor extension, if installed. Feedback can be provided for correct, incorrect and partially correct answers.

If all answers are correct, no further learner interaction is available.

If one or more answers are incorrect, the user may reset their submission, and try again. The amount of times they can do this is determined by the _attempts setting. Subsequent submissions are treated as before, until the maximum number of attempts is reached. At this point, the user is presented with the opportunity to view the model answer, and compare this with their own submission. Further submission is not available.

##Settings overview

Matching components are comprised of question text and one or more answer items. Each answer item contains multiple options, consisting of text and correct attributes.

For example JSON format, see example.json

####_classes

You can use this setting to add custom classes to your template and LESS file.

####_layout

This defines the position of the component in the block. Values can be full, left or right.

####_component

This value must be: matching

####_attempts

Default: 1

Specifies the number of attempts for this question

####_isRandom

Default: false

Setting this value to true will cause the _items to appear in a random order each time this component is loaded.

####placeholder

Use placeholder to set the text that will be displayed in the drop down answers before a user has made a selection.

####_items

Multiple _items can be entered for each matching question component. _items are made up of a text question and _options. the _options are made up of multiple values for text and _isCorrect. The _options form the drop down answers.

####text

Set some question text for this set of options.

####_options

This can comprise multiple sets of values for text and _isCorrect

####text

Enter a value for a drop down answer.

####_isCorrect

Value can be true or false. Use true for options that must be selected for a correct answer.

##Limitations

To be completed.

##Browser spec

This component has been tested to the standard Adapt browser specification.

Clone this wiki locally