]> git.ipfire.org Git - thirdparty/bootstrap.git/commitdiff
doc that popover content() is given the element as an arg; fix #13175 13190/head
authorChris Rebert <code@rebertia.com>
Wed, 26 Mar 2014 19:49:15 +0000 (12:49 -0700)
committerChris Rebert <code@rebertia.com>
Wed, 26 Mar 2014 19:49:15 +0000 (12:49 -0700)
docs/_includes/js/popovers.html

index 739d86bce7eb77cb2be29a59f7ea84d0b0b1d4b4..95868af1a4d5ad8f6a72dbdd26a5dcaca381e10a 100644 (file)
@@ -193,7 +193,10 @@ $('.popover-dismiss').popover({
           <td>content</td>
           <td>string | function</td>
           <td>''</td>
-          <td>Default content value if <code>data-content</code> attribute isn't present</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>
+          </td>
         </tr>
         <tr>
           <td>delay</td>