This is the code I have been working on:
<tr :key="index" v-for="(item, index) in items">
<td v-for="header in headers" :key="header.value">
{{ item[header.value] }}
</td>
<td>
<slot name="actions" v-bind:item="data[index]"></slot>
</td>
</tr>
I am looking to implement an override for table column slots similar to those found in material ui. For example:
<template v-slot:item.age="{item}">
<div> {{formatAge(item.age)}} </div>
</template>
Can anyone provide guidance on how to create named slots that function as objects in this manner?