From 7936f1478028fb759781014a2c93884f5f90a598 Mon Sep 17 00:00:00 2001 From: Julian Thilo Date: Wed, 10 Jul 2013 22:57:19 +0200 Subject: [PATCH] Fix #8428 - Document tooltip/popover events --- javascript.html | 66 +++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 66 insertions(+) diff --git a/javascript.html b/javascript.html index 72b37d4fb6..5d94d3f2d5 100644 --- a/javascript.html +++ b/javascript.html @@ -867,6 +867,39 @@ $('#example').tooltip(options)

.tooltip('destroy')

Hides and destroys an element's tooltip.

{% highlight js %}$('#element').tooltip('destroy'){% endhighlight %} + +

Events

+ + + + + + + + + + + + + + + + + + + + + + + + + +
Event TypeDescription
showThis event fires immediately when the show instance method is called.
shownThis event is fired when the tooltip has been made visible to the user (will wait for CSS transitions to complete).
hideThis event is fired immediately when the hide instance method has been called.
hiddenThis event is fired when the tooltip has finished being hidden from the user (will wait for CSS transitions to complete).
+{% highlight js %} +$('#myTooltip').on('hidden.bs.tooltip', function () { + // do something… +}) +{% endhighlight %} @@ -1052,6 +1085,39 @@ $('#example').tooltip(options)

.popover('destroy')

Hides and destroys an element's popover.

{% highlight js %}$('#element').popover('destroy'){% endhighlight %} + +

Events

+ + + + + + + + + + + + + + + + + + + + + + + + + +
Event TypeDescription
showThis event fires immediately when the show instance method is called.
shownThis event is fired when the popover has been made visible to the user (will wait for CSS transitions to complete).
hideThis event is fired immediately when the hide instance method has been called.
hiddenThis event is fired when the popover has finished being hidden from the user (will wait for CSS transitions to complete).
+{% highlight js %} +$('#myPopover').on('hidden.bs.popover', function () { + // do something… +}) +{% endhighlight %}