Skip to content

Commit

Permalink
Add missing v4 docs for tooltip/popover methods (#22246)
Browse files Browse the repository at this point in the history
Add missing v4 docs for tooltip/popover methods
  • Loading branch information
SidTheEngineer authored and Johann-S committed Mar 24, 2017
1 parent 7f21a80 commit d2b9191
Show file tree
Hide file tree
Showing 2 changed files with 36 additions and 0 deletions.
18 changes: 18 additions & 0 deletions docs/components/popovers.md
Original file line number Diff line number Diff line change
Expand Up @@ -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">
Expand Down
18 changes: 18 additions & 0 deletions docs/components/tooltips.md
Original file line number Diff line number Diff line change
Expand Up @@ -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">
Expand Down

0 comments on commit d2b9191

Please sign in to comment.