It's not in the documentation. So it may not be reliable for future 
versions (though it seems to me that this option is quite important).

You can see it in the defaults of tooltips (and popovers) : 
https://github.com/twitter/bootstrap/blob/master/js/bootstrap-tooltip.js#L265

*It takes a string containing HTML*. Be sure if you use it to keep the 
classes that will be used to fill the tooltip/popover.
You could pass a jQuery selector, but it would only be displayed once, 
since the tooltip/popover is destroyed and created each time.

Enjoy customizing.

Le dimanche 24 juin 2012 12:43:27 UTC+2, David Ollerhead a écrit :
>
> Ah, perfect, hadn't thought about tacking it that way.
>
> Thank you!
>
> I can't see a 'template' option in the tooltip/popover documentation, am I 
> missing it somewhere?  What does have to be passed to it?
> http://twitter.github.com/bootstrap/javascript.html#popovers
>
> Thanks,
>
> David
>
>
> On Saturday, 23 June 2012 00:42:59 UTC+1, Sherbrow wrote:
>>
>> What about using the same tooltip/popover for all buttons ?
>>
>> Here is one example : http://jsfiddle.net/5L4Kv/
>> It doesn't seem very correct but it is one way to do it.
>>
>> You could also use the template of the tooltip/popover by adding a 
>> specific class or id and use a bit of css to set an offset.
>> You can change the template via the template property of the options.
>>
>> Hope this helps.
>>
>> Le vendredi 22 juin 2012 11:11:10 UTC+2, David Ollerhead a écrit :
>>>
>>> Now the 'offset' option has been removed in the popover/tooltip 
>>> js functions, i'm finding it harder to tweak the position of the 
>>> tooltips/popovers
>>>
>>> My scenario is that i have 6 buttons in a row, but I want all the 
>>> tooltips to appear at the end of this row, in the same fixed place.
>>>
>>> Any advice or suggestions on how to achieve this?  Is there a way to 
>>> have one div to trigger the popover, but set it's target to be another?
>>>
>>> *I see the tooltips are generated at the end of the </body> positioned 
>>> absolutely.  One solution would be if there's a way to get these to be 
>>> inserted elsewhere in the markup then I could set relative to that 
>>> container div and take it from there.*
>>>
>>> Thanks,
>>>
>>> David
>>>
>>

Reply via email to