From: Sid Date: Fri, 24 Mar 2017 10:32:39 +0000 (-0400) Subject: Add missing v4 docs for tooltip/popover methods (#22246) X-Git-Tag: v4.0.0-beta~147^2~98 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=d2b919143c3fdb736ba7efae6bfb34937993db71;p=thirdparty%2Fbootstrap.git Add missing v4 docs for tooltip/popover methods (#22246) Add missing v4 docs for tooltip/popover methods --- diff --git a/docs/components/popovers.md b/docs/components/popovers.md index e4ace2ed9a..ec5b4970d3 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 diff --git a/docs/components/tooltips.md b/docs/components/tooltips.md index 825782ac27..eaab24da51 100644 --- a/docs/components/tooltips.md +++ b/docs/components/tooltips.md @@ -282,6 +282,24 @@ Hides and destroys an element's tooltip. Tooltips that use delegation (which are {% highlight js %}$('#element').tooltip('dispose'){% endhighlight %} +#### `.tooltip('enable')` + +Gives an element's tooltip the ability to be shown. **Tooltips are enabled by default.** + +{% highlight js %}$('#element').tooltip('enable'){% endhighlight %} + +#### `.tooltip('disable')` + +Removes the ability for an element's tooltip to be shown. The tooltip will only be able to be shown if it is re-enabled. + +{% highlight js %}$('#element').tooltip('disable'){% endhighlight %} + +#### `.tooltip('toggleEnabled')` + +Toggles the ability for an element's tooltip to be shown or hidden. + +{% highlight js %}$('#element').tooltip('toggleEnabled'){% endhighlight %} + ### Events