aboutsummaryrefslogtreecommitdiff
path: root/docs/javascript.html
diff options
context:
space:
mode:
authorBen Ogle <[email protected]>2013-11-22 11:58:53 -0800
committerBen Ogle <[email protected]>2014-01-14 17:42:29 -0800
commitedb221a20ceabebd427e27d0432e94a227717217 (patch)
tree3cebeb3ac9eb00e74b96000181fa340fa1f136a4 /docs/javascript.html
parent8fb75ee9e78ecb0954e1634ab85e91d533d0ab42 (diff)
downloadbootstrap-edb221a20ceabebd427e27d0432e94a227717217.tar.xz
bootstrap-edb221a20ceabebd427e27d0432e94a227717217.zip
Add tooltip `viewport` option, respect bounds of the viewport
Diffstat (limited to 'docs/javascript.html')
-rw-r--r--docs/javascript.html16
1 files changed, 16 insertions, 0 deletions
diff --git a/docs/javascript.html b/docs/javascript.html
index d7035d661..9961a2851 100644
--- a/docs/javascript.html
+++ b/docs/javascript.html
@@ -1027,6 +1027,22 @@ $('#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</td>
+ <td>'body'</td>
+ <td>
+ <p>Keeps the tooltip within the bounds of this element. Example: <code>viewport: '#viewport'</code></p>
+ </td>
+ </tr>
+ <tr>
+ <td>viewportPadding</td>
+ <td>number</td>
+ <td>0</td>
+ <td>
+ <p>Pixel distance to keep the tooltip from the edges of the viewport element. Example: <code>viewportPadding: 10</code></p>
+ </td>
+ </tr>
</tbody>
</table>
</div><!-- /.table-responsive -->