From e5a0471b0b618409e30529a5e02933d5a74a4cc5 Mon Sep 17 00:00:00 2001 From: Johann-S Date: Wed, 19 Apr 2017 15:08:06 +0200 Subject: Add an update method to allow to update position for Tooltip/Popover/Dropdown manually --- docs/components/dropdowns.md | 1 + docs/components/popovers.md | 6 ++++++ docs/components/tooltips.md | 6 ++++++ 3 files changed, 13 insertions(+) (limited to 'docs/components') diff --git a/docs/components/dropdowns.md b/docs/components/dropdowns.md index 938447f3d..7aa91773c 100644 --- a/docs/components/dropdowns.md +++ b/docs/components/dropdowns.md @@ -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 diff --git a/docs/components/popovers.md b/docs/components/popovers.md index 9366ac1a1..714bb0abc 100644 --- a/docs/components/popovers.md +++ b/docs/components/popovers.md @@ -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 diff --git a/docs/components/tooltips.md b/docs/components/tooltips.md index 54f3c448f..6d6d2a26a 100644 --- a/docs/components/tooltips.md +++ b/docs/components/tooltips.md @@ -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
-- cgit v1.2.3