diff options
| author | Pierre Vanduynslager <[email protected]> | 2017-04-08 18:43:25 -0400 |
|---|---|---|
| committer | GitHub <[email protected]> | 2017-04-08 18:43:25 -0400 |
| commit | fe72daf2b34263d3cfc9bc77e9998cd22adfa34d (patch) | |
| tree | 15dc9fc6fcb513362ba112d52ab01b568b423709 /docs/components/popovers.md | |
| parent | f5cc59145642d78d7abbdf38fee1905786da5367 (diff) | |
| parent | feb35b94a61c4d6016be8d1773a79a6bbe57d856 (diff) | |
| download | bootstrap-fe72daf2b34263d3cfc9bc77e9998cd22adfa34d.tar.xz bootstrap-fe72daf2b34263d3cfc9bc77e9998cd22adfa34d.zip | |
Merge branch 'v4-dev' into dropdown-keyboard
Diffstat (limited to 'docs/components/popovers.md')
| -rw-r--r-- | docs/components/popovers.md | 25 |
1 files changed, 25 insertions, 0 deletions
diff --git a/docs/components/popovers.md b/docs/components/popovers.md index e4ace2ed9..cc1b0fe2e 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. @@ -306,6 +309,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"> @@ -332,6 +353,10 @@ Hides and destroys an element's popover. Popovers that use delegation (which are <td>hidden.bs.popover</td> <td>This event is fired when the popover has finished being hidden from the user (will wait for CSS transitions to complete).</td> </tr> + <tr> + <td>inserted.bs.popover</td> + <td>This event is fired after the <code>show.bs.popover</code> event when the tooltip template has been added to the DOM.</td> + </tr> </tbody> </table> |
