diff --git a/javascript.html b/javascript.html index 213f32778a..623421c2d5 100644 --- a/javascript.html +++ b/javascript.html @@ -856,10 +856,41 @@ $('#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 %} - -
@@ -1046,10 +1077,40 @@ $('#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 %}
- -