From e55feacf5be152694205b14491ad626537756314 Mon Sep 17 00:00:00 2001 From: Jayanth Koushik Date: Tue, 4 Nov 2014 22:20:34 +0530 Subject: Add initialization examples to tooltip and popover "Opt-in functionality" callouts Fixes #14950. Closes #15015 by merging it. --- docs/_includes/js/tooltips.html | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'docs/_includes/js/tooltips.html') diff --git a/docs/_includes/js/tooltips.html b/docs/_includes/js/tooltips.html index 3ec076b70..87893608b 100644 --- a/docs/_includes/js/tooltips.html +++ b/docs/_includes/js/tooltips.html @@ -61,6 +61,13 @@

Opt-in functionality

For performance reasons, the Tooltip and Popover data-apis are opt-in, meaning you must initialize them yourself.

+

One way to initialize all tooltips on a page would be to select them by their data-toggle attribute:

+{% highlight js %} +$(function () { + $('[data-toggle="tooltip"]').tooltip() +}) +{% endhighlight %} +

Tooltips in button groups and input groups require special setting

-- cgit v1.2.3