@instructure/quiz-interactions
Version:
A React UI component Library for quiz interaction types.
63 lines • 1.33 kB
JavaScript
export default {
propValues: {
userResponse: [{
value: [{
id: 'uuid1',
value: ['uuid3'],
type: 'ArrayText'
}, {
id: 'uuid2',
value: ['uuid4'],
type: 'ArrayText'
}, {
id: 'uncategorized',
value: ['uuid5'],
type: 'ArrayText'
}]
}, {
value: [{
id: 'uuid1',
value: ['uuid3'],
type: 'ArrayText'
}, {
id: 'uuid2',
value: ['uuid4'],
type: 'ArrayText'
}]
}]
},
getComponentProps: function getComponentProps(props) {
return {
handleResponseUpdate: Function.prototype,
notifyScreenreader: Function.prototype,
itemBody: 'Categorization Example',
interactionData: {
categoryOrder: ['uuid1', 'uuid2'],
categories: {
uuid1: {
id: 'uuid1',
itemBody: 'Planet'
},
uuid2: {
id: 'uuid2',
itemBody: 'Moon'
}
},
distractors: {
uuid3: {
id: 'uuid3',
itemBody: 'Mars'
},
uuid4: {
id: 'uuid4',
itemBody: 'Europa'
},
uuid5: {
id: 'uuid5',
itemBody: 'America'
}
}
}
};
}
};