diff options
| author | Sid <[email protected]> | 2017-03-24 06:32:39 -0400 |
|---|---|---|
| committer | Johann <[email protected]> | 2017-03-24 11:32:39 +0100 |
| commit | d2b919143c3fdb736ba7efae6bfb34937993db71 (patch) | |
| tree | 73d4e457f61e68f0e6d68b775308a63303735477 | |
| parent | 7f21a80a6a91b9633818d50681a894b2436ffe27 (diff) | |
| download | bootstrap-d2b919143c3fdb736ba7efae6bfb34937993db71.tar.xz bootstrap-d2b919143c3fdb736ba7efae6bfb34937993db71.zip | |
Add missing v4 docs for tooltip/popover methods (#22246)
Add missing v4 docs for tooltip/popover methods
| -rw-r--r-- | docs/components/popovers.md | 18 | ||||
| -rw-r--r-- | docs/components/tooltips.md | 18 |
2 files changed, 36 insertions, 0 deletions
diff --git a/docs/components/popovers.md b/docs/components/popovers.md index e4ace2ed9..ec5b4970d 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 <table class="table table-bordered table-striped table-responsive"> diff --git a/docs/components/tooltips.md b/docs/components/tooltips.md index 825782ac2..eaab24da5 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 <table class="table table-bordered table-striped table-responsive"> |
