In vue 2.7 I have a table component
<template>
<table>
<tbody>
<slot name="tbody"></slot>
</tbody>
</table>
</template>
Using this component like so:
<my-table>
<template #tbody>
<tr v-for="employee in employees" :key="employee.id">
<td>{{ employee.name }}</td>
<td>{{ employee.occupation }}</td>
</tr>
</template>
</my-table>
Now in the component I want to add a checkbox for every row in the template supplied from outside the component. Is it possible? How?