From 7e92b33f12d8c5840aa746094f9566f0a0a1aaf8 Mon Sep 17 00:00:00 2001 From: Pamela Fox Date: Mon, 6 Feb 2012 14:37:47 -0800 Subject: [PATCH] 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 :). --- docs/templates/pages/javascript.mustache | 3 +++ 1 file changed, 3 insertions(+) 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}}