From: Yohn Date: Sun, 23 Dec 2012 12:00:03 +0000 (-0500) Subject: data-toggle instead of rel for tooltip and popover X-Git-Tag: v2.3.0^2~63^2~1^2~1 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=5da8b315c0689a0625f5d6b7f9104226994865d1;p=thirdparty%2Fbootstrap.git data-toggle instead of rel for tooltip and popover --- diff --git a/docs/javascript.html b/docs/javascript.html index 95cd6d5e64..37f7df925b 100644 --- a/docs/javascript.html +++ b/docs/javascript.html @@ -769,17 +769,17 @@ $('a[data-toggle="tab"]').on('shown', function (e) {

Inspired by the excellent jQuery.tipsy plugin written by Jason Frame; Tooltips are an updated version, which don't rely on images, use CSS3 for animations, and data-attributes for local title storage.

Hover over the links below to see tooltips:

-

Tight pants next level keffiyeh you probably haven't heard of them. Photo booth beard raw denim letterpress vegan messenger bag stumptown. Farm-to-table seitan, mcsweeney's fixie sustainable quinoa 8-bit american apparel have a terry richardson vinyl chambray. Beard stumptown, cardigans banh mi lomo thundercats. Tofu biodiesel williamsburg marfa, four loko mcsweeney's cleanse vegan chambray. A really ironic artisan whatever keytar, scenester farm-to-table banksy Austin twitter handle freegan cred raw denim single-origin coffee viral. +

Tight pants next level keffiyeh you probably haven't heard of them. Photo booth beard raw denim letterpress vegan messenger bag stumptown. Farm-to-table seitan, mcsweeney's fixie sustainable quinoa 8-bit american apparel have a terry richardson vinyl chambray. Beard stumptown, cardigans banh mi lomo thundercats. Tofu biodiesel williamsburg marfa, four loko mcsweeney's cleanse vegan chambray. A really ironic artisan whatever keytar, scenester farm-to-table banksy Austin twitter handle freegan cred raw denim single-origin coffee viral.

Four directions

@@ -858,7 +858,7 @@ $('a[data-toggle="tab"]').on('shown', function (e) {

Markup

For performance reasons, the Tooltip and Popover data-apis are opt in. If you would like to use them just specify a selector option.

-
<a href="#" rel="tooltip" title="first tooltip">hover over me</a>
+
<a href="#" data-toggle="tooltip" title="first tooltip">hover over me</a>

Methods

$().tooltip(options)

@@ -930,16 +930,16 @@ $('a[data-toggle="tab"]').on('shown', function (e) {

Live demo

- Click to toggle popover + Click to toggle popover

Four directions