From d2b919143c3fdb736ba7efae6bfb34937993db71 Mon Sep 17 00:00:00 2001 From: Sid Date: Fri, 24 Mar 2017 06:32:39 -0400 Subject: Add missing v4 docs for tooltip/popover methods (#22246) Add missing v4 docs for tooltip/popover methods --- docs/components/tooltips.md | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) (limited to 'docs/components/tooltips.md') 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 -- cgit v1.2.3