diff options
| author | Johann-S <[email protected]> | 2017-04-19 15:08:06 +0200 |
|---|---|---|
| committer | Johann-S <[email protected]> | 2017-05-14 11:41:19 +0200 |
| commit | e5a0471b0b618409e30529a5e02933d5a74a4cc5 (patch) | |
| tree | fb144078e849108c584946f6842d6316e0fd3603 /docs/components | |
| parent | fc8b85b62670b8396cac7fb821c025c58fa77a78 (diff) | |
| download | bootstrap-e5a0471b0b618409e30529a5e02933d5a74a4cc5.tar.xz bootstrap-e5a0471b0b618409e30529a5e02933d5a74a4cc5.zip | |
Add an update method to allow to update position for Tooltip/Popover/Dropdown manually
Diffstat (limited to 'docs/components')
| -rw-r--r-- | docs/components/dropdowns.md | 1 | ||||
| -rw-r--r-- | docs/components/popovers.md | 6 | ||||
| -rw-r--r-- | docs/components/tooltips.md | 6 |
3 files changed, 13 insertions, 0 deletions
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 <table class="table table-bordered table-striped table-responsive"> 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 <table class="table table-bordered table-striped table-responsive"> |
