mirror of
https://github.com/twbs/bootstrap.git
synced 2025-02-19 16:54:24 +01:00
Add missing v4 docs for tooltip/popover methods (#22246)
Add missing v4 docs for tooltip/popover methods
This commit is contained in:
parent
7f21a80a6a
commit
d2b919143c
@ -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">
|
||||
|
@ -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">
|
||||
|
Loading…
x
Reference in New Issue
Block a user