mirror of
https://github.com/twbs/bootstrap.git
synced 2025-02-24 03:40:10 +00:00
Merge pull request #17613 from Johann-S/fixTooltipDestroy
Fix #17544: Update doc for tooltips and popover about dispose method
This commit is contained in:
commit
62199b96dc
@ -304,12 +304,12 @@ Toggles an element's popover. **Returns to the caller before the popover has act
|
|||||||
|
|
||||||
{% highlight js %}$('#element').popover('toggle'){% endhighlight %}
|
{% highlight js %}$('#element').popover('toggle'){% endhighlight %}
|
||||||
|
|
||||||
#### .popover('destroy')
|
#### .popover('dispose')
|
||||||
|
|
||||||
Hides and destroys an element's popover. Popvoers that use delegation (which are created using [the `selector` option](#options)) cannot be individually destroyed on descendant trigger elements.
|
Hides and destroys an element's popover. Popvoers that use delegation (which are created using [the `selector` option](#options)) cannot be individually destroyed on descendant trigger elements.
|
||||||
|
|
||||||
|
|
||||||
{% highlight js %}$('#element').popover('destroy'){% endhighlight %}
|
{% highlight js %}$('#element').popover('dispose'){% endhighlight %}
|
||||||
|
|
||||||
### Events
|
### Events
|
||||||
|
|
||||||
|
@ -262,11 +262,11 @@ Toggles an element's tooltip. **Returns to the caller before the tooltip has act
|
|||||||
|
|
||||||
{% highlight js %}$('#element').tooltip('toggle'){% endhighlight %}
|
{% highlight js %}$('#element').tooltip('toggle'){% endhighlight %}
|
||||||
|
|
||||||
#### .tooltip('destroy')
|
#### .tooltip('dispose')
|
||||||
|
|
||||||
Hides and destroys an element's tooltip. Tooltips that use delegation (which are created using [the `selector` option](#options)) cannot be individually destroyed on descendant trigger elements.
|
Hides and destroys an element's tooltip. Tooltips that use delegation (which are created using [the `selector` option](#options)) cannot be individually destroyed on descendant trigger elements.
|
||||||
|
|
||||||
{% highlight js %}$('#element').tooltip('destroy'){% endhighlight %}
|
{% highlight js %}$('#element').tooltip('dispose'){% endhighlight %}
|
||||||
|
|
||||||
### Events
|
### Events
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user