XF 2.0 How to use Tooltips Core for custom tooltips


New member
I wanted to know how to use the included core js functions to handle tooltips.
I found there is a tooltip.js file , and there are different options to choose from.. Preview , Basic , Element etc..

I need to display custom html not just an inline text.
For simple inline texts adding data-xf-init="tooltip" and a title="" attribute on my element, it works..
But how can I display a content from a unique div for example ?

Thanks in advance..