Reputation: 36632
I've noticed that when using Bootstrap's Tooltip, I still have to manually include this line in a javascript file to get it to work:
$('[rel="tooltip"]').tooltip();
However, quoting the documentation:
You can use all Bootstrap plugins purely through the markup API without writing a single line of JavaScript. This is Bootstrap's first class API and should be your first consideration when using a plugin.
But that's not what I see: http://jsfiddle.net/ccmyx/1/ (try to remove the Javascript part).
Am I missing something?
Upvotes: 8
Views: 3812
Reputation: 91349
No, contrary to all other JavaScript components, both Tooltip and Popover do not support the data-api. This is mentioned in the documentation:
For performance reasons, the Tooltip and Popover data-apis are opt in. If you would like to use them just specify a selector option.
Upvotes: 14