diff --git a/site/content/docs/5.0/components/carousel.md b/site/content/docs/5.0/components/carousel.md index 17d8bf1e39..935779238c 100644 --- a/site/content/docs/5.0/components/carousel.md +++ b/site/content/docs/5.0/components/carousel.md @@ -239,40 +239,40 @@ Options can be passed via data attributes or JavaScript. For data attributes, ap
interval
5000
keyboard
true
pause
"hover"
If set to "hover"
, pauses the cycling of the carousel on mouseenter
and resumes the cycling of the carousel on mouseleave
. If set to false
, hovering over the carousel won't pause it.
On touch-enabled devices, when set to "hover"
, cycling will pause on touchend
(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.
slide
false
wrap
true
touch
true
parent
false
card
class). The attribute has to be set on the target collapsible area.toggle
true
show.bs.collapse
show
instance method is called.shown.bs.collapse
hide.bs.collapse
hide
method has been called.hidden.bs.collapse
offset
0
Offset of the dropdown relative to its target.
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.
@@ -832,33 +832,33 @@ Options can be passed via data attributes or JavaScript. For data attributes, apflip
true
boundary
'scrollParent'
'viewport'
, 'window'
, 'scrollParent'
, or an HTMLElement reference (JavaScript only). For more information refer to Popper.js's preventOverflow docs.reference
'toggle'
'toggle'
, 'parent'
, or an HTMLElement reference. For more information refer to Popper.js's referenceObject docs.display
'dynamic'
static
.popperConfig
null
show.bs.tab
event.target
and event.relatedTarget
to target the active tab and the previous active tab (if available) respectively.shown.bs.tab
event.target
and event.relatedTarget
to target the active tab and the previous active tab (if available) respectively.hide.bs.tab
event.target
and event.relatedTarget
to target the current active tab and the new soon-to-be-active tab, respectively.hidden.bs.tab
event.target
and event.relatedTarget
to target the previous active tab and the new active tab, respectively..modal-fullscreen-sm-down
Below 576px
576px
.modal-fullscreen-md-down
Below 768px
768px
.modal-fullscreen-lg-down
Below 992px
992px
.modal-fullscreen-xl-down
Below 1200px
1200px
backdrop
'static'
true
static
for a backdrop which doesn't close the modal on click.keyboard
true
focus
true
show
true
show.bs.modal
show
instance method is called. If caused by a click, the clicked element is available as the relatedTarget
property of the event.shown.bs.modal
relatedTarget
property of the event.hide.bs.modal
hide
instance method has been called.hidden.bs.modal
hidePrevented.bs.modal
static
and a click outside the modal or an escape key press is performed with the keyboard option or data-keyboard
set to false
.show.bs.tab
event.target
and event.relatedTarget
to target the active tab and the previous active tab (if available) respectively.shown.bs.tab
event.target
and event.relatedTarget
to target the active tab and the previous active tab (if available) respectively.hide.bs.tab
event.target
and event.relatedTarget
to target the current active tab and the new soon-to-be-active tab, respectively.hidden.bs.tab
event.target
and event.relatedTarget
to target the previous active tab and the new active tab, respectively.animation
true
container
false
Appends the popover to a specific element. Example: container: 'body'
. 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.
content
''
Default content value if data-content
attribute isn't present.
If a function is given, it will be called with its this
reference set to the element that the popover is attached to.
delay
0
Delay showing and hiding the popover (ms) - does not apply to manual trigger type
If a number is supplied, delay is applied to both hide/show
@@ -197,28 +197,28 @@ Note that for security reasons the `sanitize`, `sanitizeFn`, and `allowList` opthtml
false
innerText
property will be used to insert content into the DOM. Use text if you're worried about XSS attacks.placement
'right'
How to position the popover - auto | top | bottom | left | right.
When auto
is specified, it will dynamically reorient the popover.
When a function is used to determine the placement, it is called with the popover DOM node as its first argument and the triggering element DOM node as its second. The this
context is set to the popover instance.
selector
false
template
'<div class="popover" role="tooltip"><div class="popover-arrow"></div><h3 class="popover-header"></h3><div class="popover-body"></div></div>'
title
''
Default title value if title
attribute isn't present.
If a function is given, it will be called with its this
reference set to the element that the popover is attached to.
trigger
'click'
manual
cannot be combined with any other trigger.offset
0
fallbackPlacement
'flip'
boundary
'scrollParent'
'viewport'
, 'window'
, 'scrollParent'
, or an HTMLElement reference (JavaScript only). For more information refer to Popper.js's preventOverflow docs.sanitize
true
'template'
, 'content'
and 'title'
options will be sanitized.allowList
sanitizeFn
null
popperConfig
null
offset
10
method
auto
auto
will choose the best method to get scroll coordinates. offset
will use the Element.getBoundingClientRect()
method to get scroll coordinates. position
will use the HTMLElement.offsetTop
and HTMLElement.offsetLeft
properties to get scroll coordinates.target
activate.bs.scrollspy
animation
true
autohide
true
delay
500
@@ -352,19 +352,19 @@ Hides an element's toast. Your toast will remain on the DOM but won't show anymo
show.bs.toast
show
instance method is called.shown.bs.toast
hide.bs.toast
hide
instance method has been called.hidden.bs.toast
animation
true
container
false
Appends the tooltip to a specific element. Example: container: 'body'
. This option is particularly useful in that it allows you to position the tooltip in the flow of the document near the triggering element - which will prevent the tooltip from floating away from the triggering element during a window resize.
delay
0
Delay showing and hiding the tooltip (ms) - does not apply to manual trigger type
If a number is supplied, delay is applied to both hide/show
@@ -194,9 +194,9 @@ Note that for security reasons the `sanitize`, `sanitizeFn`, and `allowList` opthtml
false
Allow HTML in the tooltip.
If true, HTML tags in the tooltip's title
will be rendered in the tooltip. If false, innerText
property will be used to insert content into the DOM.
placement
'top'
How to position the tooltip - auto | top | bottom | left | right.
When auto
is specified, it will dynamically reorient the tooltip.
When a function is used to determine the placement, it is called with the tooltip DOM node as its first argument and the triggering element DOM node as its second. The this
context is set to the tooltip instance.
selector
false
jQuery.on
support). See this and an informative example.template
'<div class="tooltip" role="tooltip"><div class="tooltip-arrow"></div><div class="tooltip-inner"></div></div>'
title
''
Default title value if title
attribute isn't present.
If a function is given, it will be called with its this
reference set to the element that the tooltip is attached to.
trigger
'hover focus'
How tooltip is triggered - click | hover | focus | manual. You may pass multiple triggers; separate them with a space.
'manual'
indicates that the tooltip will be triggered programmatically via the .tooltip('show')
, .tooltip('hide')
and .tooltip('toggle')
methods; this value cannot be combined with any other trigger.
offset
0
Offset of the tooltip relative to its target.
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.
@@ -259,40 +259,40 @@ Note that for security reasons the `sanitize`, `sanitizeFn`, and `allowList` optfallbackPlacement
'flip'
boundary
'scrollParent'
'viewport'
, 'window'
, 'scrollParent'
, or an HTMLElement reference (JavaScript only). For more information refer to Popper.js's preventOverflow docs.sanitize
true
'template'
and 'title'
options will be sanitized.allowList
sanitizeFn
null
popperConfig
null
show.bs.tooltip
show
instance method is called.shown.bs.tooltip
hide.bs.tooltip
hide
instance method has been called.hidden.bs.tooltip
inserted.bs.tooltip
show.bs.tooltip
event when the tooltip template has been added to the DOM.