I have to create a popup like this:
And then, bind it to an html element and make it appear when hovering it.
I'm using bootstrap, and so far i've been trying this:
HTML:
<a data-toggle="uid-popover" class="od-icon info-icon clientreference-info-button cursor-pointer"></a>
Javascript:
var popoverTemplate = ['<div class="timePickerWrapper popover">',
'<div class="arrow"></div>',
'<div class="popover-content">',
'</div>',
'</div>'].join('');
var content = ['<div>TEST</div>', ].join('');
$('[data-toggle="uid-popover"]').popover({
content: content,
template: popoverTemplate,
placement: "up",
html: true
});
I would like to know if it's possible to locate the popup just in front of the hovering item, but i'm not able to do it, because the "placement" parameter only accepts "up,bottom,left,right" inputs.
If there is any other way to make popups easier with or without bootstrap, I would be really thankful to know.
Thanks.