Vue.component("statements", {
// 'answers' is an object containing
// 'inputs'(array),
- // 'displayAll'(bool),
+ // 'displayAll'(bool), //TODO: should be in questions!
// 'showSolution'(bool),
// 'indices': order of appearance
// 'index': current integer index (focused question)
optionList
)
);
+ if (this.answers.displayAll && i < this.questions.length-1)
+ questionContent.push( h("hr") );
return h(
"div",
{
domTree
);
},
+ mounted: function() {
+ statementsLibsRefresh();
+ },
updated: function() {
// TODO: next line shouldn't be required: questions wordings + answer + options
// are processed earlier; their content should be updated at this time.