In the Twitter Bootstrap framework, both the Twipsy and Popover plugins list 'manual' as an option for triggering the tooltip. How would one use the manual option (i.e. what's the practical effect of that - how does the tooltip get activated)?
Answer
This is what I ended up using (making use of 'toggle'):
jQuery(document).ready(function($) {
$('.popup-marker').popover({
html: true,
trigger: 'manual',
}).click(function() {
$(this).popover('toggle');
});
});
In the Twitter Bootstrap framework, both the Twipsy and Popover plugins list 'manual' as an option for triggering the tooltip. How would one use the manual option (i.e. what's the practical effect of that - how does the tooltip get activated)?
Answer
This is what I ended up using (making use of 'toggle'):
jQuery(document).ready(function($) {
$('.popup-marker').popover({
html: true,
trigger: 'manual',
}).click(function() {
$(this).popover('toggle');
});
});
Share
Improve this question
edited Jun 23, 2013 at 19:45
Cheeso
193k105 gold badges484 silver badges734 bronze badges
asked Jan 17, 2012 at 16:46
Travis NorthcuttTravis Northcutt
25k9 gold badges43 silver badges51 bronze badges
1 Answer
Reset to default 10You could activate it with:
$('#element').twipsy('show')
And then hide with:
$('#element').twipsy('hide')