From c9597b1c540c472dea82a7edd91ffb356b0d327f Mon Sep 17 00:00:00 2001 From: Johann-S Date: Wed, 16 Sep 2015 09:40:26 +0200 Subject: Fix doc for tooltips and popover method dispose --- docs/components/tooltips.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'docs/components/tooltips.md') diff --git a/docs/components/tooltips.md b/docs/components/tooltips.md index 85f3e63b6..034af3e38 100644 --- a/docs/components/tooltips.md +++ b/docs/components/tooltips.md @@ -262,11 +262,11 @@ Toggles an element's tooltip. **Returns to the caller before the tooltip has act {% highlight js %}$('#element').tooltip('toggle'){% endhighlight %} -#### .tooltip('destroy') +#### .tooltip('dispose') Hides and destroys an element's tooltip. Tooltips that use delegation (which are created using [the `selector` option](#options)) cannot be individually destroyed on descendant trigger elements. -{% highlight js %}$('#element').tooltip('destroy'){% endhighlight %} +{% highlight js %}$('#element').tooltip('dispose'){% endhighlight %} ### Events -- cgit v1.2.3 From 5a15971920c443d7e347c8edad79a6f2eafd9659 Mon Sep 17 00:00:00 2001 From: Johann-S Date: Fri, 25 Sep 2015 09:14:25 +0200 Subject: Use correct default value of `constraints` in Tooltip docs; fixes #17671 Closes #17699 --- docs/components/tooltips.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'docs/components/tooltips.md') diff --git a/docs/components/tooltips.md b/docs/components/tooltips.md index 034af3e38..b67f5ec63 100644 --- a/docs/components/tooltips.md +++ b/docs/components/tooltips.md @@ -219,7 +219,7 @@ Options can be passed via data attributes or JavaScript. For data attributes, ap constraints Array - 'hover focus' + [] An array of constraints - passed through to Tether. For more information refer to Tether's constraint docs. -- cgit v1.2.3 From a9f24fc59f09cf77125833be10769e7c04f813a2 Mon Sep 17 00:00:00 2001 From: Chris Rebert Date: Mon, 28 Sep 2015 12:24:37 -0700 Subject: Use backticks/ for JS snippets in docs headings; closes #17192 [skip sauce] --- docs/components/tooltips.md | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'docs/components/tooltips.md') diff --git a/docs/components/tooltips.md b/docs/components/tooltips.md index b67f5ec63..eb6e47211 100644 --- a/docs/components/tooltips.md +++ b/docs/components/tooltips.md @@ -240,29 +240,29 @@ Options for individual tooltips can alternatively be specified through the use o ### Methods -#### $().tooltip(options) +#### `$().tooltip(options)` Attaches a tooltip handler to an element collection. -#### .tooltip('show') +#### `.tooltip('show')` Reveals an element's tooltip. **Returns to the caller before the tooltip has actually been shown** (i.e. before the `shown.bs.tooltip` event occurs). This is considered a "manual" triggering of the tooltip. Tooltips with zero-length titles are never displayed. {% highlight js %}$('#element').tooltip('show'){% endhighlight %} -#### .tooltip('hide') +#### `.tooltip('hide')` Hides an element's tooltip. **Returns to the caller before the tooltip has actually been hidden** (i.e. before the `hidden.bs.tooltip` event occurs). This is considered a "manual" triggering of the tooltip. {% highlight js %}$('#element').tooltip('hide'){% endhighlight %} -#### .tooltip('toggle') +#### `.tooltip('toggle')` Toggles an element's tooltip. **Returns to the caller before the tooltip has actually been shown or hidden** (i.e. before the `shown.bs.tooltip` or `hidden.bs.tooltip` event occurs). This is considered a "manual" triggering of the tooltip. {% highlight js %}$('#element').tooltip('toggle'){% endhighlight %} -#### .tooltip('dispose') +#### `.tooltip('dispose')` Hides and destroys an element's tooltip. Tooltips that use delegation (which are created using [the `selector` option](#options)) cannot be individually destroyed on descendant trigger elements. -- cgit v1.2.3 From 9598f98a48ada8021e4bea8c1c63eb6e16741ee1 Mon Sep 17 00:00:00 2001 From: "Peshkov, Igor" Date: Fri, 16 Oct 2015 15:24:53 +0300 Subject: Fix docs for tooltips. --- docs/components/tooltips.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'docs/components/tooltips.md') diff --git a/docs/components/tooltips.md b/docs/components/tooltips.md index eb6e47211..909a9d00c 100644 --- a/docs/components/tooltips.md +++ b/docs/components/tooltips.md @@ -15,7 +15,7 @@ Inspired by the excellent Tipsy jQuery plugin written by Jason Frame. Tooltips a Things to know when using the tooltip plugin: -- Tooltips rely on on the 3rd party library [Tether](http://github.hubspot.com/tether/) for positioning. You must include [tether.min.js](https://github.com/HubSpot/tether/blob/master/dist/js/tether.min.js) before bootstrap.js in order for tooltips to work! +- Tooltips rely on the 3rd party library [Tether](http://github.hubspot.com/tether/) for positioning. You must include [tether.min.js](https://github.com/HubSpot/tether/blob/master/dist/js/tether.min.js) before bootstrap.js in order for tooltips to work! - Tooltips are opt-in for performance reasons, so **you must initialize them yourself**. - Tooltips with zero-length titles are never displayed. - Specify `container: 'body'` to avoid rendering problems in more complex components (like our input groups, button groups, etc). -- cgit v1.2.3 From 4461884f6979b0a6d39c88d57193ddddb23ea59a Mon Sep 17 00:00:00 2001 From: Chris Rebert Date: Fri, 23 Oct 2015 23:16:33 -0700 Subject: Rename docs-specific static tooltip/popover classes for clarity; refs #18043 [skip sauce] --- docs/components/tooltips.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'docs/components/tooltips.md') diff --git a/docs/components/tooltips.md b/docs/components/tooltips.md index 909a9d00c..bba918d9d 100644 --- a/docs/components/tooltips.md +++ b/docs/components/tooltips.md @@ -48,7 +48,7 @@ Hover over the links below to see tooltips: Four options are available: top, right, bottom, and left aligned. -
+