You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
-`activeIndex` : Number, default `0` - Set carousel at the specified position.
71
74
-`animationDuration`: Number, default `400` - Set duration of animation.
72
75
-`animationEasingFunction`: String or [Function](https://developer.mozilla.org/ru/docs/Web/CSS/animation-timing-function), default `ease` - Property sets how an animation progresses through the duration of each cycle.
@@ -78,33 +81,35 @@ const Gallery = () => {
78
81
-`autoPlayDirection`: String(`ltr`, `rtl`), default `ltr` - Set autoplay direction value.
79
82
-`autoPlayInterval`: Number, default `400` - Set autoplay interval value.
80
83
-`autoPlayStrategy`: String(`default`, `action`, `all`, `none`) - Set a strategy for autoplay mode
81
-
*`default` - pause automatic playback on the hover
82
-
*`action` - stop automatic playback if user action was detected
83
-
*`all` - merge `default` && `action` strategies
84
-
*`none` - ignore any user actions when the `autoPlay` property was specified
84
+
-`default` - pause automatic playback on the hover
85
+
-`action` - stop automatic playback if user action was detected
86
+
-`all` - merge `default` && `action` strategies
87
+
-`none` - ignore any user actions when the `autoPlay` property was specified
85
88
-`controlsStrategy`: String (`default`, `responsive`, `alternate` or combined string `"default,alternate"`) - Set a strategy for gallery controls.
86
-
*`default` - use controls as is
87
-
*`alternate` - show each dot for each slide
88
-
*`responsive` - navigation will be hidden if the number of gallery elements is equal to the number of items in the slide.
89
+
-`default` - use controls as is
90
+
-`alternate` - show each dot for each slide
91
+
-`responsive` - navigation will be hidden if the number of gallery elements is equal to the number of items in the slide.
-`disableSlideInfo`: Boolean, default `true` - Disable information about current slide.
92
95
-`infinite`: Boolean, default `false` - Set infinite mode.
93
96
-`innerWidth`: Number, default `0` - Set a static value for a breakpoint(`key`) of the "responsive" property. For example, if you can't use 'window.innerWidth' during SSR.
94
-
-`items`: Array, default `undefined`- Set gallery items, preferable to use this property instead of children.
-`Space` - run/stop autoplay mode if `autoPlay` property is equal `true`
102
+
-`mouseTracking`: Boolean, default `false` - Enable mouse drag animation. Consider the problem with links, see the example of using the `<Link/>` component below.
103
+
-`paddingLeft`: Number, default `0` - Set the gallery offset from the left.
104
+
-`paddingRight`: Number, default `0` - Set the gallery offset from the right.
105
+
-`renderKey`: Number, default `undefined` - Auxiliary property, allows call the render method without changing the state inside the gallery instance.
103
106
-`responsive`: Object, default `undefined` - The key is the breakpoint (default is the result of: () => window.innerWidth or `innerWidth` property if the last presented).
104
-
*`items` - set number of items in the slide. Default: `1`
105
-
*`itemsFit`: one of (`contain | fill | undefined`) - defines, how item should fill the container according slide's width. Default: `fill`.
106
-
107
-
If `contain` is specified, the gallery will use the value from the `items` property to determine the width of the element for each slide and fill in the empty space as needed.
107
+
108
+
-`items` - set number of items in the slide. Default: `1`
109
+
-`itemsFit`: one of (`contain | fill | undefined`) - defines, how item should fill the container according slide's width. Default: `fill`.
110
+
111
+
If `contain` is specified, the gallery will use the value from the `items` property to determine the width of the element for each slide and fill in the empty space as needed.
112
+
108
113
```js
109
114
{
110
115
0: {
@@ -115,15 +120,16 @@ const Gallery = () => {
115
120
itemsFit:'contain',
116
121
}
117
122
}
118
-
```
119
-
-`syncStateOnPropsUpdate`:Boolean, default `true`- Sync some props (like `activeIndex`) with carousel state whilenewpropspassed. This allows you to avoid resetting the carousel position while updating the props (e.g.:`children` or `items`).
120
-
-`swipeDelta`:Number, default `20`-Set minimum distance to the start of the swiping (px).
121
-
-`swipeExtraPadding`:Number, default `200`-Set maximum distance from initial place before swipe action will be stopped (px).
122
-
-`ssrSilentMode`:Boolean, default `true`- Disable classnames modifiers for server side rendering.
-`touchMoveDefaultEvents`:Boolean, default `true`- Enable touch move default events on swiping. If`false` was specified, this prevents vertical scrolling of the parent elements during the swipe.
123
+
```
124
+
125
+
-`syncStateOnPropsUpdate`: Boolean, default `true` - Sync some props (like `activeIndex`) with carousel state while new props passed. This allows you to avoid resetting the carousel position while updating the props (e.g.: `children` or `items`).
126
+
-`swipeDelta`: Number, default `20` - Set minimum distance to the start of the swiping (px).
127
+
-`swipeExtraPadding`: Number, default `200` - Set maximum distance from initial place before swipe action will be stopped (px).
128
+
-`ssrSilentMode`: Boolean, default `true` - Disable classnames modifiers for server side rendering.
-`touchMoveDefaultEvents`: Boolean, default `true` - Enable touch move default events on swiping. If `false` was specified, this prevents vertical scrolling of the parent elements during the swipe.
125
131
-`onInitialized(e: EventObject)`: Function - Fired as callback after the gallery was created.
126
-
-`onResizeEvent(e: Event)`:Function, default `shouldProcessResizeEvent` method - Fired during the "resize"event to determine whether to call the eventhandler. Default method checks is the root element width has changed.
132
+
-`onResizeEvent(e: Event)`: Function, default `shouldProcessResizeEvent` method - Fired during the "resize" event to determine whether to call the event handler. Default method checks is the root element width has changed.
127
133
-`onResized(e: EventObject)`: Function - Fired as callback after the gallery was resized.
128
134
-`onUpdated(e: EventObject)`: Function - Fired as callback after updating the gallery props.
129
135
-`onSlideChange(e: EventObject)`: Function - Fired before the event object changes.
@@ -135,95 +141,116 @@ const Gallery = () => {
135
141
-`renderPlayPauseButton({ isPlaying })`: Rendering function - create a custom component.
0 commit comments