From fd293be5a17aa71128beb1a2152f8eb05107e21c Mon Sep 17 00:00:00 2001 From: Mark Otto Date: Sun, 13 Oct 2013 18:49:13 -0700 Subject: [PATCH] mention tooltip markup in docs per #10102 --- javascript.html | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/javascript.html b/javascript.html index e0723989e6..4fed27e48e 100644 --- a/javascript.html +++ b/javascript.html @@ -847,9 +847,21 @@ $('a[data-toggle="tab"]').on('shown.bs.tab', function (e) {

Usage

+

The tooltip plugin generates content and markup on demand, and by default places tooltips after their trigger element.

Trigger the tooltip via JavaScript:

{% highlight js %} $('#example').tooltip(options) +{% endhighlight %} + +

Markup

+

The generated markup of a tooltip is rather simple, though it does require a position (by default, set to top by the plugin).

+{% highlight html linenos %} +
+
+ Tooltip! +
+
+
{% endhighlight %}

Options