diff options
| author | Chris Rebert <[email protected]> | 2014-07-27 16:18:59 -0700 |
|---|---|---|
| committer | Chris Rebert <[email protected]> | 2014-07-27 16:18:59 -0700 |
| commit | ff12a76e5aee26fda3452f88987c7d0d0c2c646a (patch) | |
| tree | dda1f9e8eb7cca10bd223628fba2422aaec17da2 /docs/_includes | |
| parent | d6d9bb5bc857b2fd2cb21f89861d9f84904c1997 (diff) | |
| download | bootstrap-ff12a76e5aee26fda3452f88987c7d0d0c2c646a.tar.xz bootstrap-ff12a76e5aee26fda3452f88987c7d0d0c2c646a.zip | |
Fix #14224: Correctly document args passed to function vals for `title` & `content` options of tooltips+popovers
Diffstat (limited to 'docs/_includes')
| -rw-r--r-- | docs/_includes/js/popovers.html | 7 | ||||
| -rw-r--r-- | docs/_includes/js/tooltips.html | 5 |
2 files changed, 9 insertions, 3 deletions
diff --git a/docs/_includes/js/popovers.html b/docs/_includes/js/popovers.html index 4ab7253b1..792ea2176 100644 --- a/docs/_includes/js/popovers.html +++ b/docs/_includes/js/popovers.html @@ -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> diff --git a/docs/_includes/js/tooltips.html b/docs/_includes/js/tooltips.html index 33743c4c2..9e6c0b8e0 100644 --- a/docs/_includes/js/tooltips.html +++ b/docs/_includes/js/tooltips.html @@ -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> |
