Add tooltip viewport option, respect bounds of the viewport
This commit is contained in:
parent
d52ad3ee3b
commit
8534e12523
4 changed files with 252 additions and 40 deletions
|
|
@ -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 -->
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue