I want to use tooltip with Svelte. How should the correct use be?
{#each shift.shiftDetail as detail}
<Icon f7="info_circle_fill" class="color-yellow tooltip-init" data-tooltip="{detail.week}" />
{/each}
Update
I am using this right now
<div on:click|once={ event => showPopover(detail.week,event)} >
<Icon f7="info_circle_fill" class="color-yellow"/>
</div>
function showPopover(text,event){
f7.tooltip.create({
targetEl: event.target,
text: text,
}).show(event.target);
}