diff options
| author | Mark Otto <[email protected]> | 2014-03-23 11:41:28 -0700 |
|---|---|---|
| committer | Mark Otto <[email protected]> | 2014-03-23 11:41:28 -0700 |
| commit | 2b27006c717bdd1e67fc663ef5dda58b78226b63 (patch) | |
| tree | c99c8fedd828ff94ee428f6cbe493eb0060c3437 /docs | |
| parent | 30cc625c5c686f00af15a926f9437cb0e3fdff42 (diff) | |
| parent | 8534e12523c7156b53e76393cc8d016ffdcf5b4f (diff) | |
| download | bootstrap-2b27006c717bdd1e67fc663ef5dda58b78226b63.tar.xz bootstrap-2b27006c717bdd1e67fc663ef5dda58b78226b63.zip | |
Merge pull request #12328 from benogle/bo-tooltip-adjust
Add tooltip `viewport` option, respect bounds of the viewport
Diffstat (limited to 'docs')
| -rw-r--r-- | docs/_includes/js/tooltips.html | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/docs/_includes/js/tooltips.html b/docs/_includes/js/tooltips.html index 2656556be..b952e8504 100644 --- a/docs/_includes/js/tooltips.html +++ b/docs/_includes/js/tooltips.html @@ -134,6 +134,14 @@ $('#example').tooltip(options) <p>Appends the tooltip to a specific element. Example: <code>container: 'body'</code></p> </td> </tr> + <tr> + <td>viewport</td> + <td>string | object</td> + <td>{ selector: 'body', padding: 0 }</td> + <td> + <p>Keeps the tooltip within the bounds of this element. Example: <code>viewport: '#viewport'</code> or <code>{ selector: '#viewport', padding: 0 }</code></p> + </td> + </tr> </tbody> </table> </div><!-- /.table-responsive --> |
