Fix #14224: Correctly document args passed to function vals for `title` & `content` options of tooltips+popovers

This commit is contained in:
Chris Rebert 2014-07-27 16:18:59 -07:00
parent d6d9bb5bc8
commit ff12a76e5a
2 changed files with 9 additions and 3 deletions

View File

@ -163,7 +163,7 @@ sagittis lacus vel augue laoreet rutrum faucibus.">
<td>''</td>
<td>
<p>Default content value if <code>data-content</code> attribute isn't present.</p>
<p>If a function is given, it will be called with 1 argument, which is the element that the popover is attached to.</p>
<p>If a function is given, it will be called with its <code>this</code> reference set to the element that the popover is attached to.</p>
</td>
</tr>
<tr>
@ -210,7 +210,10 @@ sagittis lacus vel augue laoreet rutrum faucibus.">
<td>title</td>
<td>string | function</td>
<td>''</td>
<td>Default title value if <code>title</code> attribute isn't present</td>
<td>
<p>Default title value if <code>title</code> attribute isn't present.</p>
<p>If a function is given, it will be called with its <code>this</code> reference set to the element that the popover is attached to.</p>
</td>
</tr>
<tr>
<td>trigger</td>

View File

@ -141,7 +141,10 @@ $('#example').tooltip(options)
<td>title</td>
<td>string | function</td>
<td>''</td>
<td>Default title value if <code>title</code> attribute isn't present</td>
<td>
<p>Default title value if <code>title</code> attribute isn't present.</p>
<p>If a function is given, it will be called with its <code>this</code> reference set to the element that the tooltip is attached to.</p>
</td>
</tr>
<tr>
<td>trigger</td>