I have table rows where I display additional information in a twitter bootstrap popover.
A few notes from the interaction design I work with:
- Popovers must show up when you hover the row
- Popovers will contain 1 or more links
Now, the link part is the hard part. If you move the mouse from the table row, to the popover (which contains the link), the popover will disappear!
I am creating the the popover with this code:
var options = {placement: 'bottom', trigger: 'hover', html: true};
$(this).popover()
-- which assumes relevant html including the link is generated and put in data-content
attribute
Notice this {placement: 'bottom' }
. In order to make it possible to move the mouse to the popover, I tried {placement: 'in bottom'}
(added in
keyword, which generates popover dom element inside the selector).
Problem is for table rows, that is not really legal HTML-wise. Perhaps that's why placement: 'in bottom'
renders even more ugly: The popover glues to the top of my viewport.
Try my demo in My example on JSFiddle
It contains the examples ...
My question is how should I define my popover, so that it is possible to click the links -- given the limitations set by the interaction design?