I have a v-data-table configured with 5 columns and I want to add a text as a v-tooltip component. However, since it's all in one template, I am unable to use the tooltip on it without the
<template #activator="{ on }">
. Can anyone advise me on how to achieve this?
Below is an excerpt of what one of my columns looks like in the code.
<template #item.title2="{ item }">
<div class="ellipsis news">
<a
target="_blank"
v-if="item.file != ''"
class="links1"
:href="item.file"
v-on="on"
>
<span style="color:white"> {{ item.title }} </span>
</a>
</div>
</template>
My goal is to wrap the v-tooltip around this code snippet, but encountering a specific message while attempting to do so.
https://i.sstatic.net/5E51c.png
When hovering over my v-data-table, specifically the 'news' and 'actors' fields, I would like their details to be displayed.