aboutsummaryrefslogtreecommitdiff
path: root/docs
diff options
context:
space:
mode:
authorBen Ogle <[email protected]>2014-01-20 11:54:22 -0800
committerBen Ogle <[email protected]>2014-03-21 11:28:13 -0700
commit8534e12523c7156b53e76393cc8d016ffdcf5b4f (patch)
tree3bf083080f7dffc9cc9b230f2f656caa65b085dc /docs
parentd52ad3ee3ba5a0fc51e1f06abeebd888846856eb (diff)
downloadbootstrap-8534e12523c7156b53e76393cc8d016ffdcf5b4f.tar.xz
bootstrap-8534e12523c7156b53e76393cc8d016ffdcf5b4f.zip
Add tooltip `viewport` option, respect bounds of the viewport
Diffstat (limited to 'docs')
-rw-r--r--docs/_includes/js/tooltips.html8
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 -->