Repository navigation
How to set a checkbox "checked"? #450
|
Working on Todo... I can't figure out how to have the checkbox The <table >
<tbody>
<tr :for="el in items">
<td><input id="chk-{id}" type="checkbox" name="done" @click="done"></td>
<td><input id="desc-{el.id}" name="desc" value="{el.desc}" @keyup.enter="desc"></td>
</tr>
</tbody>
</table>I thought of using I tried making a separate file: <div @name="mycheckbox">
<td><input id="chk-{id}" type="checkbox" name="done" @click="done"></td>
</div>And then reference it <tr :for="el in items">
<mycheckbox :bind="el"/>
<td><input id="desc-{el.id}" value="{el.desc}" @keyup.enter="desc"></td>
</tr>But the component doesn't show up and no errors anywhere. |
Answered by
bartonhammond
Jan 22, 2025
Replies: 1 comment
|
Seems that working |
0 replies
Answer selected by
bartonhammond
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Seems that working
tablestuff doesn't work so well..Just working with
inputis fine