UNPKG

@instructure/quiz-interactions

Version:

A React UI component Library for quiz interaction types.

41 lines 1.07 kB
export default { propValues: { scoringValues: [{ quuid1Value: 'George Washington', quuid2Value: 'Abraham Lincoln', quuid3Value: 'Barack Obama', test: 'All present' }, { quuid1Value: '', quuid2Value: '', quuid3Value: '', test: 'All absent' }] }, getComponentProps: function getComponentProps(props) { return { itemId: 'fakeItemId', itemBody: "Matching: Show (".concat(props.scoringValues.test, ")"), interactionData: { questions: [{ id: 'quuid1', itemBody: '1st President' }, { id: 'quuid2', itemBody: '16th President' }, { id: 'quuid3', itemBody: '44th President' }], answers: ['George Washington', 'Thomas Jefferson', 'Abraham Lincoln', 'Barack Obama'] }, scoringData: { value: { quuid1: props.scoringValues.quuid1Value, quuid2: props.scoringValues.quuid2Value, quuid3: props.scoringValues.quuid3Value } } }; } };