From: Pamela Fox Date: Mon, 6 Feb 2012 22:37:47 +0000 (-0800) Subject: Adding tooltip example to javascript docs. It's particularly helpful to show the... X-Git-Tag: v2.0.1~1^2~24^2 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=refs%2Fpull%2F1782%2Fhead;p=thirdparty%2Fbootstrap.git Adding tooltip example to javascript docs. It's particularly helpful to show the pre-generated HTML for tooltips, as inspecting the source will show post-processed HTML with data-original-title attributes and may confuse folks (where folks=me :). --- diff --git a/docs/templates/pages/javascript.mustache b/docs/templates/pages/javascript.mustache index 57cb4eac42..c98e746c8b 100644 --- a/docs/templates/pages/javascript.mustache +++ b/docs/templates/pages/javascript.mustache @@ -697,6 +697,9 @@ $('a[data-toggle="tab"]').on('shown', function (e) {

{{_i}}Markup{{/i}}

{{_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}}

+
+<a href="#" rel="tooltip" title="first tooltip">{{_i}}hover over me{{/i}}</a>
+

{{_i}}Methods{{/i}}

$().tooltip({{_i}}options{{/i}})

{{_i}}Attaches a tooltip handler to an element collection.{{/i}}