We have multiple choice, sort, and drag and drop via tagging. A matching question is not terribly different from sort + tagging. Instead of putting in order you are moving to different zones.
There's not a ton I can reuse from question element as far as the actual processing and logic with question element but could possible leverage the "correct order" notion from sorting to just be displaying it in a non-sorted way (tho there is still an obvious 'correct order') to things.
We'll need some kind of target connotation like...
<input correct data-matching="target" value="Planets"> with <input correct data-matches="Planets" value="Mercury"><input value="Moon" data-selected="A moon is where stonks go and is not on the same classification as say Earth. Think primary vs subordinate heavenly bodies.">
order would at least allow for
label (target)
label 2 (obviously associated to label)
label 3 (associated to label)
label 4 (target)
label 5 (association to label 4)
label 6 (target, nothing after it so this can't have any options for red herrings)
Data could possibly be stored just as target or match much like 'correct'. In this method, the data is flat and always pointing back to the previously loaded target. This would be pretty easy to mark up in a side panel in HAX via booleans much like 'correct'. Could even possibly only make it for 'target' and then everything in between is associated to that target.
Targets can be a vertically aligned grid. That then has a drop zone associated on the other side for the index. The grid in the element is also built based on
Show targets ahead of time or targets are mixed in with valid answers
We have multiple choice, sort, and drag and drop via tagging. A matching question is not terribly different from sort + tagging. Instead of putting in order you are moving to different zones.
There's not a ton I can reuse from question element as far as the actual processing and logic with question element but could possible leverage the "correct order" notion from sorting to just be displaying it in a non-sorted way (tho there is still an obvious 'correct order') to things.
We'll need some kind of
target
connotation like...order would at least allow for
Data could possibly be stored just as
target
ormatch
much like 'correct'. In this method, the data is flat and always pointing back to the previously loaded target. This would be pretty easy to mark up in a side panel in HAX via booleans much like 'correct'. Could even possibly only make it for 'target' and then everything in between is associated to that target.Targets can be a vertically aligned grid. That then has a drop zone associated on the other side for the index. The grid in the element is also built based on
Show targets ahead of time or targets are mixed in with valid answers