multiple-choice-question
v1.0.1
Published
Renders a multiple choice question
Downloads
3
Readme
multiple-choice-question
Renders a multiple choice question
Install
Open two tabs in your terminal
First Tab
yarn
yarn start
Second Tab
cd example
yarn
yarn start
cd example
yarn
yarn start
Question Configuration
{
questionBody: "Lorem Ipsum Dolor Sit Amet, Ipsum Dolor Sit Amet?",
choices:[
{
choiceBody: "Choice Body for Option 1",
choiceIdentifier: "Choice 1",
correct: false,
format: "text"
},
{
choiceBody: "Choice Body for Option 2",
choiceIdentifier: "Choice 2",
correct: false,
format: "text"
},
{
choiceBody: "Choice Body for Option 3",
choiceIdentifier: "Choice 3",
correct: false,
format: "text"
},
{
choiceBody: "https://cognifyx-psychology.com/wp-content/uploads/2019/11/logo-cognifix.png",
choiceIdentifier: "Choice 4",
correct: true,
format: "image"
}
],
review: true,
shuffle: true,
userResponse: "Choice 2",
layout: "half" // The other choice is full
}
License
© survah