From 3d71eae3011b10daa558baf494b019925fee5f60 Mon Sep 17 00:00:00 2001 From: Johann-S Date: Tue, 24 Mar 2015 20:47:35 +0100 Subject: Add event after template inserted --- docs/_includes/js/tooltips.html | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'docs/_includes/js/tooltips.html') diff --git a/docs/_includes/js/tooltips.html b/docs/_includes/js/tooltips.html index d606929ba..a8914b180 100644 --- a/docs/_includes/js/tooltips.html +++ b/docs/_includes/js/tooltips.html @@ -260,6 +260,10 @@ $('#example').tooltip(options) hidden.bs.tooltip This event is fired when the tooltip has finished being hidden from the user (will wait for CSS transitions to complete). + + inserted.bs.tooltip + This event is fired after the show.bs.tooltip event when the tooltip template has been added to the DOM. + -- cgit v1.2.3 From e949505b89ca146e3af0cf735e100c82703f1cda Mon Sep 17 00:00:00 2001 From: Adrien Siami Date: Wed, 25 Mar 2015 14:46:21 +0100 Subject: Allow viewport option to be a function Closes #16151 by merging a rebased version of it that adds docs and 1 more assertion. --- docs/_includes/js/tooltips.html | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'docs/_includes/js/tooltips.html') diff --git a/docs/_includes/js/tooltips.html b/docs/_includes/js/tooltips.html index a8914b180..5b399a5f3 100644 --- a/docs/_includes/js/tooltips.html +++ b/docs/_includes/js/tooltips.html @@ -199,10 +199,11 @@ $('#example').tooltip(options) viewport - string | object + string | object | function { selector: 'body', padding: 0 }

Keeps the tooltip within the bounds of this element. Example: viewport: '#viewport' or { "selector": "#viewport", "padding": 0 }

+

If a function is given, it is called with the triggering element DOM node as its only argument. The this context is set to the tooltip instance.

-- cgit v1.2.3