| 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
{% 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">
{% 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">
if (this._popper !== null) {
this._popper.destroy()
}
+ this._popper = null
}
+ update() {
+ if (this._popper !== null) {
+ this._popper.scheduleUpdate()
+ }
+ }
// private
this._timeout = null
this._hoverState = null
this._activeTrigger = null
+ if (this._popper !== null) {
+ this._popper.destroy()
+ }
this._popper = null
this.element = null
}
+ update() {
+ if (this._popper !== null) {
+ this._popper.scheduleUpdate()
+ }
+ }
// protected
}
_handlePopperPlacementChange(data) {
- this._cleanTipClass()
- this.addAttachmentClass(this._getAttachment(data.placement))
+ this._cleanTipClass()
+ this.addAttachmentClass(this._getAttachment(data.placement))
}
// static