both sides in memory helper

This commit is contained in:
Klemek
2023-08-29 16:44:26 +02:00
parent 3239a8293c
commit e228509ff7
3 changed files with 18 additions and 2 deletions
+5
View File
@@ -36,6 +36,11 @@
<div>
<h2 v-on:click="showConfig = !showConfig" class="expand">{{showConfig ? '▾' : '▸'}} List ({{ available.length }})</h2>
<table class="config" v-if="showConfig">
<tr>
<td><input type="checkbox" v-model="q2a" @click="nextQuestion"/>&nbsp;Q&nbsp;&nbsp;A</td>
<td><input type="checkbox" v-model="a2q" @click="nextQuestion"/>&nbsp;A&nbsp;&nbsp;Q</td>
<td></td>
</tr>
<tr v-for="(row, i) in available">
<td><input placeholder="question" v-bind:value="row[0]" v-on:change="row[0] = $event.target.value"></td>
<td><input placeholder="answer" v-bind:value="row[1]" v-on:change="row[1] = $event.target.value"></td>