Multiple Choice Matrix
An ISLE component that renders a matrix of multiple choice questions with the same answers.
Options
- questions |
array (required): an array of questions. Default:none. - answers |
array (required): an array of answers. Default:none. - title |
(string|node): title to be displayed on top of the question matrix. Default:none. - solution |
array<array>: boolean matrix the element of which indicate whether the respective radio button or checkbox should be ticked. Default:none. - type |
string: question type (radiocorresponds to "Select one",checkboxto "Select all that apply"). Default:'radio'. - disableSubmitNotification |
boolean: controls whether to disable submission notifications. Default:false. - onChange |
function: callback invoked when the value of a checkbox / radio button changes; invoked with the two-dimensional boolean array of the active status for each answer option. Default:onChange() {}. - onSubmit |
function: callback invoked when user clicks the "Submit" button; invoked with the two-dimensional boolean array of the active status for each answer option. Default:onSubmit() {}.
Examples
Live Editor
Result
ReferenceError: Provider is not defined