From ab8dbc214e7ea43fec65c4464b8db7392f3df905 Mon Sep 17 00:00:00 2001 From: Phil Hughes Date: Fri, 10 Oct 2014 15:50:00 +0100 Subject: Implement `hide` and `hidden` events for tabs Closes #14772. --- docs/_includes/js/tabs.html | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'docs/_includes/js') diff --git a/docs/_includes/js/tabs.html b/docs/_includes/js/tabs.html index 39c244e8e..570e21e20 100644 --- a/docs/_includes/js/tabs.html +++ b/docs/_includes/js/tabs.html @@ -132,6 +132,14 @@ $('#myTab li:eq(2) a').tab('show') // Select third tab (0-indexed) shown.bs.tab This event fires on tab show after a tab has been shown. Use event.target and event.relatedTarget to target the active tab and the previous active tab (if available) respectively. + + hide.bs.tab + This event fires immediately when a new tab is to be shown and before the show.bs.tab event. Use event.relatedTarget to target the new tab. + + + hidden.bs.tab + This event fires after a new tab is shown and before the shown.bs.tab event. Use event.relatedTarget to target the new tab. + -- cgit v1.2.3