2
0
mirror of https://github.com/tenrok/bootstrap.git synced 2026-06-05 16:42:29 +03:00

Add an update method to allow to update position for Tooltip/Popover/Dropdown manually

This commit is contained in:
Johann-S
2017-04-19 15:08:06 +02:00
parent fc8b85b626
commit e5a0471b0b
5 changed files with 29 additions and 2 deletions
+1
View File
@@ -568,6 +568,7 @@ Options can be passed via data attributes or JavaScript. For data attributes, ap
| Method | Description |
| --- | --- |
| `$().dropdown('toggle')` | Toggles the dropdown menu of a given navbar or tabbed navigation. |
| `$().dropdown('update')` | Updates the position of an element's dropdown. |
### Events
+6
View File
@@ -322,6 +322,12 @@ Toggles the ability for an element's popover to be shown or hidden.
{% highlight js %}$('#element').popover('toggleEnabled'){% endhighlight %}
#### `.popover('update')`
Updates the position of an element's popover.
{% highlight js %}$('#element').popover('update'){% endhighlight %}
### Events
<table class="table table-bordered table-striped table-responsive">
+6
View File
@@ -298,6 +298,12 @@ Toggles the ability for an element's tooltip to be shown or hidden.
{% highlight js %}$('#element').tooltip('toggleEnabled'){% endhighlight %}
#### `.tooltip('update')`
Updates the position of an element's tooltip.
{% highlight js %}$('#element').tooltip('update'){% endhighlight %}
### Events
<table class="table table-bordered table-striped table-responsive">