]> git.ipfire.org Git - thirdparty/bootstrap.git/commitdiff
Add missing v4 docs for tooltip/popover methods (#22246)
authorSid <sidp@knights.ucf.edu>
Fri, 24 Mar 2017 10:32:39 +0000 (06:32 -0400)
committerJohann <johann.servoire@gmail.com>
Fri, 24 Mar 2017 10:32:39 +0000 (11:32 +0100)
Add missing v4 docs for tooltip/popover methods

docs/components/popovers.md
docs/components/tooltips.md

index e4ace2ed9a9f6597918fcc831cb4b947ec940363..ec5b4970d378629aa065d610f27750e21f92f53a 100644 (file)
@@ -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
 
 <table class="table table-bordered table-striped table-responsive">
index 825782ac27c8c64d147ccc2007f0ea719feefd3e..eaab24da51df77cff924ac6fbc6689cd32a3887e 100644 (file)
@@ -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
 
 <table class="table table-bordered table-striped table-responsive">