diff options
| author | Chris Rebert <[email protected]> | 2015-09-28 12:30:03 -0700 |
|---|---|---|
| committer | Chris Rebert <[email protected]> | 2015-09-28 12:30:03 -0700 |
| commit | 215d4c19f74b71c4e960d9797e902803ad0ffe09 (patch) | |
| tree | 3e3839772bfc3dc85d87ffdd36caf249a6bec1d3 /docs/components/tooltips.md | |
| parent | fabba295c32fc9aef11964ffe81fd920d4d5ee9c (diff) | |
| parent | a9f24fc59f09cf77125833be10769e7c04f813a2 (diff) | |
| download | bootstrap-215d4c19f74b71c4e960d9797e902803ad0ffe09.tar.xz bootstrap-215d4c19f74b71c4e960d9797e902803ad0ffe09.zip | |
Merge pull request #17725 from twbs/curly-quotes
Use backticks/<code> for JS snippets in docs headings
Diffstat (limited to 'docs/components/tooltips.md')
| -rw-r--r-- | docs/components/tooltips.md | 10 |
1 files changed, 5 insertions, 5 deletions
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. |
