[Solved] Framework7 Svelte Tooltip

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}" />


I am using this right now

<div  on:click|once={ event =>  showPopover(detail.week,event)} >
     <Icon f7="info_circle_fill" class="color-yellow"/>

    function showPopover(text,event){


                      targetEl: event.target,

                      text: text,



It has just a tooltip prop where you can pass tooltip text https://framework7.io/svelte/icon.html#icon-properties

1 Like

Oh my god. I missed it. Thank you