Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/twbs/bootstrap.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/docs
diff options
context:
space:
mode:
authorJohann-S <johann.servoire@gmail.com>2017-04-19 16:08:06 +0300
committerJohann-S <johann.servoire@gmail.com>2017-05-14 12:41:19 +0300
commite5a0471b0b618409e30529a5e02933d5a74a4cc5 (patch)
treefb144078e849108c584946f6842d6316e0fd3603 /docs
parentfc8b85b62670b8396cac7fb821c025c58fa77a78 (diff)
Add an update method to allow to update position for Tooltip/Popover/Dropdown manually
Diffstat (limited to 'docs')
-rw-r--r--docs/components/dropdowns.md1
-rw-r--r--docs/components/popovers.md6
-rw-r--r--docs/components/tooltips.md6
3 files changed, 13 insertions, 0 deletions
diff --git a/docs/components/dropdowns.md b/docs/components/dropdowns.md
index 938447f3d6..7aa91773cf 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 9366ac1a1d..714bb0abcf 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
<table class="table table-bordered table-striped table-responsive">
diff --git a/docs/components/tooltips.md b/docs/components/tooltips.md
index 54f3c448f5..6d6d2a26a0 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
<table class="table table-bordered table-striped table-responsive">