Skip to content

Commit a02d068

Browse files
garethJohann-S
authored andcommitted
Updates docs to match Tooltip type checking (twbs#22342)
* 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
1 parent ee574b7 commit a02d068

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

docs/4.0/components/popovers.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -179,7 +179,7 @@ Options can be passed via data attributes or JavaScript. For data attributes, ap
179179
</tr>
180180
<tr>
181181
<td>container</td>
182-
<td>string | false</td>
182+
<td>string | element | false</td>
183183
<td>false</td>
184184
<td>
185185
<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
221221
</tr>
222222
<tr>
223223
<td>selector</td>
224-
<td>string</td>
224+
<td>string | false</td>
225225
<td>false</td>
226226
<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>
227227
</tr>

docs/4.0/components/tooltips.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -201,7 +201,7 @@ Options can be passed via data attributes or JavaScript. For data attributes, ap
201201
</tr>
202202
<tr>
203203
<td>selector</td>
204-
<td>string</td>
204+
<td>string | false</td>
205205
<td>false</td>
206206
<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>
207207
</tr>

0 commit comments

Comments
 (0)