]> git.ipfire.org Git - thirdparty/bootstrap.git/commitdiff
Adding tooltip example to javascript docs. It's particularly helpful to show the... 1782/head
authorPamela Fox <pamela.fox@gmail.com>
Mon, 6 Feb 2012 22:37:47 +0000 (14:37 -0800)
committerPamela Fox <pamela.fox@gmail.com>
Mon, 6 Feb 2012 22:37:47 +0000 (14:37 -0800)
docs/templates/pages/javascript.mustache

index 57cb4eac421c1d971dab2cd4f56155024beaa25c..c98e746c8bbc3803e5c51b6c3c3c6e608c0af443 100644 (file)
@@ -697,6 +697,9 @@ $('a[data-toggle="tab"]').on('shown', function (e) {
           </div>
           <h3>{{_i}}Markup{{/i}}</h3>
           <p>{{_i}}For performance reasons, the Tooltip and Popover data-apis are opt in. If you would like to use them just specify a selector option.{{/i}}</p>
+<pre class="prettyprint linenums">
+&lt;a href="#" rel="tooltip" title="first tooltip"&gt;{{_i}}hover over me{{/i}}&lt;/a&gt;
+</pre>
           <h3>{{_i}}Methods{{/i}}</h3>
           <h4>$().tooltip({{_i}}options{{/i}})</h4>
           <p>{{_i}}Attaches a tooltip handler to an element collection.{{/i}}</p>