Sunday, May 12, 2024
15
rated 0 times [  16] [ 1]  / answers: 1 / hits: 20389  / 13 Years ago, tue, january 17, 2012, 12:00:00

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');
});
});

More From » twitter-bootstrap

 Answers
109

You could activate it with:



$('#element').twipsy('show')


And then hide with:



$('#element').twipsy('hide')

[#87967] Monday, January 16, 2012, 13 Years  [reply] [flag answer]
Only authorized users can answer the question. Please sign in first, or register a free account.
emileef

Total Points: 724
Total Questions: 108
Total Answers: 102

Location: Romania
Member since Sun, Dec 20, 2020
3 Years ago
;