From d2b919143c3fdb736ba7efae6bfb34937993db71 Mon Sep 17 00:00:00 2001 From: Sid Date: Fri, 24 Mar 2017 06:32:39 -0400 Subject: Add missing v4 docs for tooltip/popover methods (#22246) Add missing v4 docs for tooltip/popover methods --- docs/components/popovers.md | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) (limited to 'docs/components/popovers.md') diff --git a/docs/components/popovers.md b/docs/components/popovers.md index e4ace2ed9..ec5b4970d 100644 --- a/docs/components/popovers.md +++ b/docs/components/popovers.md @@ -306,6 +306,24 @@ Hides and destroys an element's popover. Popovers that use delegation (which are {% highlight js %}$('#element').popover('dispose'){% endhighlight %} +#### `.popover('enable')` + +Gives an element's popover the ability to be shown. **Popovers are enabled by default.** + +{% highlight js %}$('#element').popover('enable'){% endhighlight %} + +#### `.popover('disable')` + +Removes the ability for an element's popover to be shown. The popover will only be able to be shown if it is re-enabled. + +{% highlight js %}$('#element').popover('disable'){% endhighlight %} + +#### `.popover('toggleEnabled')` + +Toggles the ability for an element's popover to be shown or hidden. + +{% highlight js %}$('#element').popover('toggleEnabled'){% endhighlight %} + ### Events -- cgit v1.2.3 From 48c5efa4c3c439d8720b8475ec3e372c6974a12a Mon Sep 17 00:00:00 2001 From: Pierre Vanduynslager Date: Tue, 28 Mar 2017 17:43:16 -0400 Subject: Fix JS components console error "Error: is transitioning" --- docs/components/popovers.md | 3 +++ 1 file changed, 3 insertions(+) (limited to 'docs/components/popovers.md') diff --git a/docs/components/popovers.md b/docs/components/popovers.md index ec5b4970d..5f26e4bbd 100644 --- a/docs/components/popovers.md +++ b/docs/components/popovers.md @@ -277,6 +277,9 @@ Options for individual popovers can alternatively be specified through the use o ### Methods +{% capture callout-include %}{% include callout-danger-async-methods.md %}{% endcapture %} +{{ callout-include | markdownify }} + #### `$().popover(options)` Initializes popovers for an element collection. -- cgit v1.2.3 From 31a21044e021a591d0e9d6eba9ee17d2000e17ac Mon Sep 17 00:00:00 2001 From: Johann-S Date: Fri, 7 Apr 2017 14:23:26 +0200 Subject: Documentation - Add inserted event for Tooltip and Popover --- docs/components/popovers.md | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'docs/components/popovers.md') diff --git a/docs/components/popovers.md b/docs/components/popovers.md index 5f26e4bbd..cc1b0fe2e 100644 --- a/docs/components/popovers.md +++ b/docs/components/popovers.md @@ -353,6 +353,10 @@ Toggles the ability for an element's popover to be shown or hidden. + + + +
hidden.bs.popover This event is fired when the popover has finished being hidden from the user (will wait for CSS transitions to complete).
inserted.bs.popoverThis event is fired after the show.bs.popover event when the tooltip template has been added to the DOM.
-- cgit v1.2.3