Tooltip for dynamically created div

Can someone help me please,

I have a function that creates a div dynamically and sets the tooltip to init but it doesn’t work I tried 3 days searching and looking for something but nothing.

  • <"div class=“tools extension”>
    <“div class=“button-extension tooltip-init” data-tooltip=“extension tips”>
    <“i class=“my-icon”>

*obs function createDiv() render div in click button

Referring to the tooltip page in the docs, that will only work if the div is in the DOM before page initialization in f7. I would recommend that you simply initialize the tooltip after you dynamically add the element by calling app.tooltip.create with targetEl set to a selector for your new element.