diff options
author | GeoSot <geo.sotis@gmail.com> | 2022-04-13 11:36:54 +0300 |
---|---|---|
committer | GeoSot <geo.sotis@gmail.com> | 2022-04-14 14:11:45 +0300 |
commit | c48fe5fa93779f81a6fb8a60fdded9b16be492ca (patch) | |
tree | e3d7bb6ddd9d8817a242cc21264e13125e4e0227 | |
parent | 40517fb326faa5f2a06feab6771a8bf5eeaf70ff (diff) |
Changes after reviewgs/carousel-tweaks
-rw-r--r-- | js/src/carousel.js | 10 | ||||
-rw-r--r-- | site/content/docs/5.1/components/carousel.md | 4 |
2 files changed, 7 insertions, 7 deletions
diff --git a/js/src/carousel.js b/js/src/carousel.js index e557e923db..64f38d7e64 100644 --- a/js/src/carousel.js +++ b/js/src/carousel.js @@ -71,10 +71,10 @@ const KEY_TO_DIRECTION = { const Default = { interval: 5000, keyboard: true, - ride: false, pause: 'hover', - wrap: true, - touch: true + ride: false, + touch: true, + wrap: true } const DefaultType = { @@ -82,8 +82,8 @@ const DefaultType = { keyboard: 'boolean', ride: '(boolean|string)', pause: '(string|boolean)', - wrap: 'boolean', - touch: 'boolean' + touch: 'boolean', + wrap: 'boolean' } /** diff --git a/site/content/docs/5.1/components/carousel.md b/site/content/docs/5.1/components/carousel.md index c23061402d..813046a32a 100644 --- a/site/content/docs/5.1/components/carousel.md +++ b/site/content/docs/5.1/components/carousel.md @@ -316,9 +316,9 @@ Options can be passed via data attributes or JavaScript. For data attributes, ap | `interval` | number | `5000` | The amount of time to delay between automatically cycling an item. If `false`, carousel will not automatically cycle. | | `keyboard` | boolean | `true` | Whether the carousel should react to keyboard events. | | `pause` | string, boolean | `"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. This is in addition to the mouse behavior. | -| `ride` | string, boolean | `false` | Autoplays the carousel after the user manually cycles the first item. If set to`"carousel"`, autoplays the carousel on load. | -| `wrap` | boolean | `true` | Whether the carousel should cycle continuously or have hard stops. | +| `ride` | string, boolean | `false` | If set to `true`, autoplays the carousel after the user manually cycles the first item. If set to `"carousel"`, autoplays the carousel on load. | | `touch` | boolean | `true` | Whether the carousel should support left/right swipe interactions on touchscreen devices. | +| `wrap` | boolean | `true` | Whether the carousel should cycle continuously or have hard stops. | {{< /bs-table >}} ### Methods |