]> git.ipfire.org Git - thirdparty/bootstrap.git/commitdiff
Updates docs to match Tooltip type checking (#22342)
authorGareth Adams <g@rethada.ms>
Tue, 3 Oct 2017 18:23:42 +0000 (19:23 +0100)
committerJohann-S <johann.servoire@gmail.com>
Tue, 3 Oct 2017 18:23:42 +0000 (20:23 +0200)
* Updates docs to match Tooltip type checking

Documentation now matches the types defined in the DefaultType constant in
js/src/tooltip.js

* Revert documentation clarify where true is invalid

docs/4.0/components/popovers.md
docs/4.0/components/tooltips.md

index 0dbca96ff6898219218f1eac12be74c30e539abf..b8356b0d20004c161927a1e386d6847608c679af 100644 (file)
@@ -179,7 +179,7 @@ Options can be passed via data attributes or JavaScript. For data attributes, ap
     </tr>
     <tr>
       <td>container</td>
-      <td>string | false</td>
+      <td>string | element | false</td>
       <td>false</td>
       <td>
         <p>Appends the popover to a specific element. Example: <code>container: 'body'</code>. This option is particularly useful in that it allows you to position the popover in the flow of the document near the triggering element - which will prevent the popover from floating away from the triggering element during a window resize.</p>
@@ -221,7 +221,7 @@ Options can be passed via data attributes or JavaScript. For data attributes, ap
     </tr>
     <tr>
       <td>selector</td>
-      <td>string</td>
+      <td>string | false</td>
       <td>false</td>
       <td>If a selector is provided, popover objects will be delegated to the specified targets. In practice, this is used to enable dynamic HTML content to have popovers added. See <a href="https://github.com/twbs/bootstrap/issues/4215">this</a> and <a href="https://jsbin.com/zopod/1/edit">an informative example</a>.</td>
     </tr>
index 30d38f0fb6ad480522cfc0f926b8effac5e7f116..d3598048df284ec47ce58403b87463f3bfa508fc 100644 (file)
@@ -201,7 +201,7 @@ Options can be passed via data attributes or JavaScript. For data attributes, ap
     </tr>
     <tr>
       <td>selector</td>
-      <td>string</td>
+      <td>string | false</td>
       <td>false</td>
       <td>If a selector is provided, tooltip objects will be delegated to the specified targets. In practice, this is used to enable dynamic HTML content to have popovers added. See <a href="https://github.com/twbs/bootstrap/issues/4215">this</a> and <a href="https://jsbin.com/zopod/1/edit">an informative example</a>.</td>
     </tr>