@instructure/quiz-interactions
Version:
A React UI component Library for quiz interaction types.
33 lines • 687 B
JavaScript
export default {
propValues: {
scoringData: [{
test: 'No answer'
}, {
value: 'uuid1',
test: 'Option 1'
}, {
value: 'uuid2',
test: 'Option 2'
}]
},
getComponentProps: function getComponentProps(props) {
return {
itemId: 'fakeItemId',
itemBody: "Multiple Choice: Show (".concat(props.scoringData.test, ")"),
interactionData: {
choices: [{
id: 'uuid1',
itemBody: 'Option 1',
position: 1
}, {
id: 'uuid2',
itemBody: 'Option 2',
position: 2
}]
},
scoringData: {
value: props.scoringData.value
}
};
}
};