]> git.ipfire.org Git - thirdparty/bootstrap.git/commitdiff
mention tooltip markup in docs per #10102
authorMark Otto <otto@github.com>
Mon, 14 Oct 2013 01:49:13 +0000 (18:49 -0700)
committerMark Otto <otto@github.com>
Mon, 14 Oct 2013 01:49:13 +0000 (18:49 -0700)
javascript.html

index e0723989e6c6a0a065cea221b4f2a189ade3a344..4fed27e48e8ed1a1e039da85bf0df1f330e39476 100644 (file)
@@ -847,9 +847,21 @@ $('a[data-toggle="tab"]').on('shown.bs.tab', function (e) {
     </div>
 
     <h2 id="tooltips-usage">Usage</h2>
+    <p>The tooltip plugin generates content and markup on demand, and by default places tooltips after their trigger element.</p>
     <p>Trigger the tooltip via JavaScript:</p>
 {% highlight js %}
 $('#example').tooltip(options)
+{% endhighlight %}
+
+    <h3>Markup</h3>
+    <p>The generated markup of a tooltip is rather simple, though it does require a position (by default, set to <code>top</code> by the plugin).</p>
+{% highlight html linenos %}
+<div class="tooltip">
+  <div class="tooltip-inner">
+    Tooltip!
+  </div>
+  <div class="tooltip-arrow"></div>
+</div>
 {% endhighlight %}
 
     <h3>Options</h3>