From 169b4b5dcbca740951735a60cc5c46a1366c2652 Mon Sep 17 00:00:00 2001 From: Jacob Thornton Date: Sat, 29 Oct 2011 19:59:51 -0700 Subject: [PATCH] add template option and make title an optional attribute for popover --- docs/javascript.html | 14 +++++++++++++- js/bootstrap-popover.js | 11 +++++++++-- js/bootstrap-twipsy.js | 9 +++++++-- 3 files changed, 29 insertions(+), 5 deletions(-) diff --git a/docs/javascript.html b/docs/javascript.html index 3aac2a82f8..b80ff58fc5 100644 --- a/docs/javascript.html +++ b/docs/javascript.html @@ -553,6 +553,12 @@ $('#.tabs').bind('change', function (e) { 'hover' how tooltip is triggered - hover | focus | manual + + template + string + [default markup] + The html template used for rendering a twipsy. +

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

@@ -679,6 +685,12 @@ $('#.tabs').bind('change', function (e) { 'hover' how tooltip is triggered - hover | focus | manual + + template + string + [default markup] + The html template used for rendering a popover. +

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

@@ -693,7 +705,7 @@ $('#.tabs').bind('change', function (e) {

Hides an elements popover.

$('#element').popover('hide')

Demo

- hover for popover + hover for popover