diff options
| author | Mark Otto <[email protected]> | 2014-09-17 15:21:31 -0700 |
|---|---|---|
| committer | Mark Otto <[email protected]> | 2014-09-17 15:21:31 -0700 |
| commit | 9f2aeafe851bdca522b886c29afcece1ee0060e1 (patch) | |
| tree | be13d5ce0d68631543f28af8d9b444a7bd44917e /docs/javascript/tooltips.md | |
| parent | 7d9f55c3d5dcc5b12882af96245dab27be5fa346 (diff) | |
| parent | c5c67d0f54674dede58fc924d4d7c0f1d65705d9 (diff) | |
| download | bootstrap-9f2aeafe851bdca522b886c29afcece1ee0060e1.tar.xz bootstrap-9f2aeafe851bdca522b886c29afcece1ee0060e1.zip | |
Merge branch 'master' into derp
Conflicts:
Gruntfile.js
dist/css/bootstrap-theme.css.map
dist/css/bootstrap.css
dist/css/bootstrap.css.map
dist/css/bootstrap.min.css
dist/fonts/glyphicons-halflings-regular.svg
docs/_includes/components/badges.html
docs/_includes/components/input-groups.html
docs/_includes/components/pagination.html
docs/_includes/css/forms.html
docs/_includes/footer.html
docs/_includes/getting-started/browser-device-support.html
docs/_includes/getting-started/grunt.html
docs/_includes/home-nav.html
docs/_includes/js/alerts.html
docs/_includes/js/buttons.html
docs/_includes/js/carousel.html
docs/_includes/js/collapse.html
docs/_includes/js/modal.html
docs/_includes/js/popovers.html
docs/_includes/js/tooltips.html
docs/_includes/nav/getting-started.html
docs/_includes/nav/javascript.html
docs/assets/css/docs.min.css
docs/assets/css/src/docs.css
docs/assets/js/customize.min.js
docs/assets/js/raw-files.min.js
docs/browser-bugs.html
docs/dist/css/bootstrap-theme.css.map
docs/dist/css/bootstrap.css
docs/dist/css/bootstrap.css.map
docs/dist/css/bootstrap.min.css
docs/dist/fonts/glyphicons-halflings-regular.svg
fonts/glyphicons-halflings-regular.svg
less/_button-group.less
less/_jumbotron.less
less/_variables.less
less/mixins/vendor-prefixes.less
less/panels.less
less/thumbnails.less
package.json
Diffstat (limited to 'docs/javascript/tooltips.md')
| -rw-r--r-- | docs/javascript/tooltips.md | 87 |
1 files changed, 59 insertions, 28 deletions
diff --git a/docs/javascript/tooltips.md b/docs/javascript/tooltips.md index 2dc6a6372..b2dc237fa 100644 --- a/docs/javascript/tooltips.md +++ b/docs/javascript/tooltips.md @@ -16,9 +16,40 @@ Hover over the links below to see tooltips: </p> </div> -### Directions +### Static demo -Available in four directions +Four options are available: top, right, bottom, and left aligned. + +<div class="bs-example bs-example-tooltip"> + <div class="tooltip left" role="tooltip"> + <div class="tooltip-arrow"></div> + <div class="tooltip-inner"> + Tooltip on the left + </div> + </div> + <div class="tooltip top" role="tooltip"> + <div class="tooltip-arrow"></div> + <div class="tooltip-inner"> + Tooltip on the top + </div> + </div> + <div class="tooltip bottom" role="tooltip"> + <div class="tooltip-arrow"></div> + <div class="tooltip-inner"> + Tooltip on the bottom + </div> + </div> + <div class="tooltip right" role="tooltip"> + <div class="tooltip-arrow"></div> + <div class="tooltip-inner"> + Tooltip on the right + </div> + </div> +</div> + +### Interactive demo + +Hover over the buttons below to see their tooltips. <div class="bs-example tooltip-demo"> <div class="bs-example-tooltips"> @@ -100,12 +131,12 @@ Options can be passed via data attributes or JavaScript. For data attributes, ap <div class="table-responsive"> <table class="table table-bordered table-striped"> <thead> - <tr> - <th style="width: 100px;">Name</th> - <th style="width: 100px;">Type</th> - <th style="width: 50px;">Default</th> - <th>Description</th> - </tr> + <tr> + <th style="width: 100px;">Name</th> + <th style="width: 100px;">Type</th> + <th style="width: 50px;">Default</th> + <th>Description</th> + </tr> </thead> <tbody> <tr> @@ -231,28 +262,28 @@ Hides and destroys an element's tooltip. <div class="table-responsive"> <table class="table table-bordered table-striped"> <thead> - <tr> - <th style="width: 150px;">Event Type</th> - <th>Description</th> - </tr> + <tr> + <th style="width: 150px;">Event Type</th> + <th>Description</th> + </tr> </thead> <tbody> - <tr> - <td>show.bs.tooltip</td> - <td>This event fires immediately when the <code>show</code> instance method is called.</td> - </tr> - <tr> - <td>shown.bs.tooltip</td> - <td>This event is fired when the tooltip has been made visible to the user (will wait for CSS transitions to complete).</td> - </tr> - <tr> - <td>hide.bs.tooltip</td> - <td>This event is fired immediately when the <code>hide</code> instance method has been called.</td> - </tr> - <tr> - <td>hidden.bs.tooltip</td> - <td>This event is fired when the tooltip has finished being hidden from the user (will wait for CSS transitions to complete).</td> - </tr> + <tr> + <td>show.bs.tooltip</td> + <td>This event fires immediately when the <code>show</code> instance method is called.</td> + </tr> + <tr> + <td>shown.bs.tooltip</td> + <td>This event is fired when the tooltip has been made visible to the user (will wait for CSS transitions to complete).</td> + </tr> + <tr> + <td>hide.bs.tooltip</td> + <td>This event is fired immediately when the <code>hide</code> instance method has been called.</td> + </tr> + <tr> + <td>hidden.bs.tooltip</td> + <td>This event is fired when the tooltip has finished being hidden from the user (will wait for CSS transitions to complete).</td> + </tr> </tbody> </table> </div> |
