From 640fd15464306238de99a3391888a95156e27995 Mon Sep 17 00:00:00 2001 From: Jacob Thornton Date: Sat, 29 Oct 2011 19:27:02 -0700 Subject: allow the use of data attributes to define popover options --- docs/javascript.html | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'docs/javascript.html') diff --git a/docs/javascript.html b/docs/javascript.html index 47edf2b75..3aac2a82f 100644 --- a/docs/javascript.html +++ b/docs/javascript.html @@ -555,6 +555,8 @@ $('#.tabs').bind('change', function (e) { +

Notice Individual twipsy instance options can alternatively be specified through the use of data attributes.

+
<a href="#" data-placement="below" rel='twipsy' title='Some title text'>text</a>

Methods

$().twipsy(options)

Attaches a twipsy handler to an element collection.

@@ -669,7 +671,7 @@ $('#.tabs').bind('change', function (e) { content string, function 'data-content' - attribute or method for retrieving content text + a string or method for retrieving content text. if none are provided, content will be sourced from a data-content attribute. trigger @@ -679,6 +681,8 @@ $('#.tabs').bind('change', function (e) { +

Notice Individual popover instance options can alternatively be specified through the use of data attributes.

+
<a data-placement="below" href="#" class="btn danger" rel="popover">text</a>

Methods

$().popover(options)

Initializes popovers for an element collection.

-- cgit v1.2.3