Skip to content

Commit 2c38800

Browse files
Add code to method/property tables (twbs#31130)
Co-authored-by: XhmikosR <[email protected]>
1 parent 22f3241 commit 2c38800

File tree

10 files changed

+139
-139
lines changed

10 files changed

+139
-139
lines changed

site/content/docs/5.0/components/carousel.md

+12-12
Original file line numberDiff line numberDiff line change
@@ -239,40 +239,40 @@ Options can be passed via data attributes or JavaScript. For data attributes, ap
239239
</thead>
240240
<tbody>
241241
<tr>
242-
<td>interval</td>
242+
<td><code>interval</code></td>
243243
<td>number</td>
244-
<td>5000</td>
244+
<td><code>5000</code></td>
245245
<td>The amount of time to delay between automatically cycling an item. If false, carousel will not automatically cycle.</td>
246246
</tr>
247247
<tr>
248-
<td>keyboard</td>
248+
<td><code>keyboard</code></td>
249249
<td>boolean</td>
250-
<td>true</td>
250+
<td><code>true</code></td>
251251
<td>Whether the carousel should react to keyboard events.</td>
252252
</tr>
253253
<tr>
254-
<td>pause</td>
254+
<td><code>pause</code></td>
255255
<td>string | boolean</td>
256-
<td>"hover"</td>
256+
<td><code>"hover"</code></td>
257257
<td><p>If set to <code>"hover"</code>, pauses the cycling of the carousel on <code>mouseenter</code> and resumes the cycling of the carousel on <code>mouseleave</code>. If set to <code>false</code>, hovering over the carousel won't pause it.</p>
258258
<p>On touch-enabled devices, when set to <code>"hover"</code>, cycling will pause on <code>touchend</code> (once the user finished interacting with the carousel) for two intervals, before automatically resuming. Note that this is in addition to the above mouse behavior.</p></td>
259259
</tr>
260260
<tr>
261-
<td>slide</td>
261+
<td><code>slide</code></td>
262262
<td>string | boolean</td>
263-
<td>false</td>
263+
<td><code>false</code></td>
264264
<td>Autoplays the carousel after the user manually cycles the first item. If "carousel", autoplays the carousel on load.</td>
265265
</tr>
266266
<tr>
267-
<td>wrap</td>
267+
<td><code>wrap</code></td>
268268
<td>boolean</td>
269-
<td>true</td>
269+
<td><code>true</code></td>
270270
<td>Whether the carousel should cycle continuously or have hard stops.</td>
271271
</tr>
272272
<tr>
273-
<td>touch</td>
273+
<td><code>touch</code></td>
274274
<td>boolean</td>
275-
<td>true</td>
275+
<td><code>true</code></td>
276276
<td>Whether the carousel should support left/right swipe interactions on touchscreen devices.</td>
277277
</tr>
278278
</tbody>

site/content/docs/5.0/components/collapse.md

+8-8
Original file line numberDiff line numberDiff line change
@@ -171,15 +171,15 @@ Options can be passed via data attributes or JavaScript. For data attributes, ap
171171
</thead>
172172
<tbody>
173173
<tr>
174-
<td>parent</td>
174+
<td><code>parent</code></td>
175175
<td>selector | jQuery object | DOM element </td>
176-
<td>false</td>
176+
<td><code>false</code></td>
177177
<td>If parent is provided, then all collapsible elements under the specified parent will be closed when this collapsible item is shown. (similar to traditional accordion behavior - this is dependent on the <code>card</code> class). The attribute has to be set on the target collapsible area.</td>
178178
</tr>
179179
<tr>
180-
<td>toggle</td>
180+
<td><code>toggle</code></td>
181181
<td>boolean</td>
182-
<td>true</td>
182+
<td><code>true</code></td>
183183
<td>Toggles the collapsible element on invocation</td>
184184
</tr>
185185
</tbody>
@@ -246,19 +246,19 @@ Bootstrap's collapse class exposes a few events for hooking into collapse functi
246246
</thead>
247247
<tbody>
248248
<tr>
249-
<td>show.bs.collapse</td>
249+
<td><code>show.bs.collapse</code></td>
250250
<td>This event fires immediately when the <code>show</code> instance method is called.</td>
251251
</tr>
252252
<tr>
253-
<td>shown.bs.collapse</td>
253+
<td><code>shown.bs.collapse</code></td>
254254
<td>This event is fired when a collapse element has been made visible to the user (will wait for CSS transitions to complete).</td>
255255
</tr>
256256
<tr>
257-
<td>hide.bs.collapse</td>
257+
<td><code>hide.bs.collapse</code></td>
258258
<td>This event is fired immediately when the <code>hide</code> method has been called.</td>
259259
</tr>
260260
<tr>
261-
<td>hidden.bs.collapse</td>
261+
<td><code>hidden.bs.collapse</code></td>
262262
<td>This event is fired when a collapse element has been hidden from the user (will wait for CSS transitions to complete).</td>
263263
</tr>
264264
</tbody>

site/content/docs/5.0/components/dropdowns.md

+12-12
Original file line numberDiff line numberDiff line change
@@ -822,43 +822,43 @@ Options can be passed via data attributes or JavaScript. For data attributes, ap
822822
</thead>
823823
<tbody>
824824
<tr>
825-
<td>offset</td>
825+
<td><code>offset</code></td>
826826
<td>number | string | function</td>
827-
<td>0</td>
827+
<td><code>0</code></td>
828828
<td>
829829
<p>Offset of the dropdown relative to its target.</p>
830830
<p>When a function is used to determine the offset, it is called with an object containing the offset data as its first argument. The function must return an object with the same structure. The triggering element DOM node is passed as the second argument.</p>
831831
<p>For more information refer to Popper.js's <a href="https://popper.js.org/docs/v1/#modifiers..offset.offset">offset docs</a>.</p>
832832
</td>
833833
</tr>
834834
<tr>
835-
<td>flip</td>
835+
<td><code>flip</code></td>
836836
<td>boolean</td>
837-
<td>true</td>
837+
<td><code>true</code></td>
838838
<td>Allow Dropdown to flip in case of an overlapping on the reference element. For more information refer to Popper.js's <a href="https://popper.js.org/docs/v1/#modifiers..flip.enabled">flip docs</a>.</td>
839839
</tr>
840840
<tr>
841-
<td>boundary</td>
841+
<td><code>boundary</code></td>
842842
<td>string | element</td>
843-
<td>'scrollParent'</td>
843+
<td><code>'scrollParent'</code></td>
844844
<td>Overflow constraint boundary of the dropdown menu. Accepts the values of <code>'viewport'</code>, <code>'window'</code>, <code>'scrollParent'</code>, or an HTMLElement reference (JavaScript only). For more information refer to Popper.js's <a href="https://popper.js.org/docs/v1/#modifiers..preventOverflow.boundariesElement">preventOverflow docs</a>.</td>
845845
</tr>
846846
<tr>
847-
<td>reference</td>
847+
<td><code>reference</code></td>
848848
<td>string | element</td>
849-
<td>'toggle'</td>
849+
<td><code>'toggle'</code></td>
850850
<td>Reference element of the dropdown menu. Accepts the values of <code>'toggle'</code>, <code>'parent'</code>, or an HTMLElement reference. For more information refer to Popper.js's <a href="https://popper.js.org/docs/v1/#referenceObject">referenceObject docs</a>.</td>
851851
</tr>
852852
<tr>
853-
<td>display</td>
853+
<td><code>display</code></td>
854854
<td>string</td>
855-
<td>'dynamic'</td>
855+
<td><code>'dynamic'</code></td>
856856
<td>By default, we use Popper.js for dynamic positioning. Disable this with <code>static</code>.</td>
857857
</tr>
858858
<tr>
859-
<td>popperConfig</td>
859+
<td><code>popperConfig</code></td>
860860
<td>null | object</td>
861-
<td>null</td>
861+
<td><code>null</code></td>
862862
<td>To change Bootstrap's default Popper.js config, see <a href="https://popper.js.org/docs/v1/#Popper.Defaults">Popper.js's configuration</a></td>
863863
</tr>
864864
</tbody>

site/content/docs/5.0/components/list-group.md

+4-4
Original file line numberDiff line numberDiff line change
@@ -445,19 +445,19 @@ If no tab was already active, the `hide.bs.tab` and `hidden.bs.tab` events will
445445
</thead>
446446
<tbody>
447447
<tr>
448-
<td>show.bs.tab</td>
448+
<td><code>show.bs.tab</code></td>
449449
<td>This event fires on tab show, but before the new tab has been shown. Use <code>event.target</code> and <code>event.relatedTarget</code> to target the active tab and the previous active tab (if available) respectively.</td>
450450
</tr>
451451
<tr>
452-
<td>shown.bs.tab</td>
452+
<td><code>shown.bs.tab</code></td>
453453
<td>This event fires on tab show after a tab has been shown. Use <code>event.target</code> and <code>event.relatedTarget</code> to target the active tab and the previous active tab (if available) respectively.</td>
454454
</tr>
455455
<tr>
456-
<td>hide.bs.tab</td>
456+
<td><code>hide.bs.tab</code></td>
457457
<td>This event fires when a new tab is to be shown (and thus the previous active tab is to be hidden). Use <code>event.target</code> and <code>event.relatedTarget</code> to target the current active tab and the new soon-to-be-active tab, respectively.</td>
458458
</tr>
459459
<tr>
460-
<td>hidden.bs.tab</td>
460+
<td><code>hidden.bs.tab</code></td>
461461
<td>This event fires after a new tab is shown (and thus the previous active tab is hidden). Use <code>event.target</code> and <code>event.relatedTarget</code> to target the previous active tab and the new active tab, respectively.</td>
462462
</tr>
463463
</tbody>

site/content/docs/5.0/components/modal.md

+17-17
Original file line numberDiff line numberDiff line change
@@ -699,19 +699,19 @@ Another override is the option to pop up a modal that covers the user viewport,
699699
</tr>
700700
<tr>
701701
<td><code>.modal-fullscreen-sm-down</code></td>
702-
<td><code>Below 576px</code></td>
702+
<td>Below <code>576px</code></td>
703703
</tr>
704704
<tr>
705705
<td><code>.modal-fullscreen-md-down</code></td>
706-
<td><code>Below 768px</code></td>
706+
<td>Below <code>768px</code></td>
707707
</tr>
708708
<tr>
709709
<td><code>.modal-fullscreen-lg-down</code></td>
710-
<td><code>Below 992px</code></td>
710+
<td>Below <code>992px</code></td>
711711
</tr>
712712
<tr>
713713
<td><code>.modal-fullscreen-xl-down</code></td>
714-
<td><code>Below 1200px</code></td>
714+
<td>Below <code>1200px</code></td>
715715
</tr>
716716
</tbody>
717717
</table>
@@ -878,27 +878,27 @@ Options can be passed via data attributes or JavaScript. For data attributes, ap
878878
</thead>
879879
<tbody>
880880
<tr>
881-
<td>backdrop</td>
881+
<td><code>backdrop</code></td>
882882
<td>boolean or the string <code>'static'</code></td>
883-
<td>true</td>
883+
<td><code>true</code></td>
884884
<td>Includes a modal-backdrop element. Alternatively, specify <code>static</code> for a backdrop which doesn't close the modal on click.</td>
885885
</tr>
886886
<tr>
887-
<td>keyboard</td>
887+
<td><code>keyboard</code></td>
888888
<td>boolean</td>
889-
<td>true</td>
889+
<td><code>true</code></td>
890890
<td>Closes the modal when escape key is pressed</td>
891891
</tr>
892892
<tr>
893-
<td>focus</td>
893+
<td><code>focus</code></td>
894894
<td>boolean</td>
895-
<td>true</td>
895+
<td><code>true</code></td>
896896
<td>Puts the focus on the modal when initialized.</td>
897897
</tr>
898898
<tr>
899-
<td>show</td>
899+
<td><code>show</code></td>
900900
<td>boolean</td>
901-
<td>true</td>
901+
<td><code>true</code></td>
902902
<td>Shows the modal when initialized.</td>
903903
</tr>
904904
</tbody>
@@ -972,23 +972,23 @@ Bootstrap's modal class exposes a few events for hooking into modal functionalit
972972
</thead>
973973
<tbody>
974974
<tr>
975-
<td>show.bs.modal</td>
975+
<td><code>show.bs.modal</code></td>
976976
<td>This event fires immediately when the <code>show</code> instance method is called. If caused by a click, the clicked element is available as the <code>relatedTarget</code> property of the event.</td>
977977
</tr>
978978
<tr>
979-
<td>shown.bs.modal</td>
979+
<td><code>shown.bs.modal</code></td>
980980
<td>This event is fired when the modal has been made visible to the user (will wait for CSS transitions to complete). If caused by a click, the clicked element is available as the <code>relatedTarget</code> property of the event.</td>
981981
</tr>
982982
<tr>
983-
<td>hide.bs.modal</td>
983+
<td><code>hide.bs.modal</code></td>
984984
<td>This event is fired immediately when the <code>hide</code> instance method has been called.</td>
985985
</tr>
986986
<tr>
987-
<td>hidden.bs.modal</td>
987+
<td><code>hidden.bs.modal</code></td>
988988
<td>This event is fired when the modal has finished being hidden from the user (will wait for CSS transitions to complete).</td>
989989
</tr>
990990
<tr>
991-
<td>hidePrevented.bs.modal</td>
991+
<td><code>hidePrevented.bs.modal</code></td>
992992
<td>This event is fired when the modal is shown, its backdrop is <code>static</code> and a click outside the modal or an escape key press is performed with the keyboard option or <code>data-keyboard</code> set to <code>false</code>.</td>
993993
</tr>
994994
</tbody>

site/content/docs/5.0/components/navs.md

+4-4
Original file line numberDiff line numberDiff line change
@@ -645,19 +645,19 @@ If no tab was already active, then the `hide.bs.tab` and `hidden.bs.tab` events
645645
</thead>
646646
<tbody>
647647
<tr>
648-
<td>show.bs.tab</td>
648+
<td><code>show.bs.tab</code></td>
649649
<td>This event fires on tab show, but before the new tab has been shown. Use <code>event.target</code> and <code>event.relatedTarget</code> to target the active tab and the previous active tab (if available) respectively.</td>
650650
</tr>
651651
<tr>
652-
<td>shown.bs.tab</td>
652+
<td><code>shown.bs.tab</code></td>
653653
<td>This event fires on tab show after a tab has been shown. Use <code>event.target</code> and <code>event.relatedTarget</code> to target the active tab and the previous active tab (if available) respectively.</td>
654654
</tr>
655655
<tr>
656-
<td>hide.bs.tab</td>
656+
<td><code>hide.bs.tab</code></td>
657657
<td>This event fires when a new tab is to be shown (and thus the previous active tab is to be hidden). Use <code>event.target</code> and <code>event.relatedTarget</code> to target the current active tab and the new soon-to-be-active tab, respectively.</td>
658658
</tr>
659659
<tr>
660-
<td>hidden.bs.tab</td>
660+
<td><code>hidden.bs.tab</code></td>
661661
<td>This event fires after a new tab is shown (and thus the previous active tab is hidden). Use <code>event.target</code> and <code>event.relatedTarget</code> to target the previous active tab and the new active tab, respectively.</td>
662662
</tr>
663663
</tbody>

0 commit comments

Comments
 (0)