Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/twbs/bootstrap.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBen Ogle <ogle.ben@gmail.com>2013-11-22 23:58:53 +0400
committerBen Ogle <ogle.ben@gmail.com>2014-01-15 05:42:29 +0400
commitedb221a20ceabebd427e27d0432e94a227717217 (patch)
tree3cebeb3ac9eb00e74b96000181fa340fa1f136a4 /docs/javascript.html
parent8fb75ee9e78ecb0954e1634ab85e91d533d0ab42 (diff)
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 d7035d6612..9961a28519 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 -->