j1-template 2024.3.16 → 2024.3.17
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/assets/data/amplitude.html +132 -61
- data/assets/data/banner.html +1 -1
- data/assets/data/cookieconsent.html +1 -1
- data/assets/data/docsearch.html +1 -1
- data/assets/data/fab.html +1 -1
- data/assets/data/footer.html +1 -1
- data/assets/data/galeries.html +1 -1
- data/assets/data/gallery_customizer.html +1 -1
- data/assets/data/gemini-ui.html +1 -1
- data/assets/data/iframes.html +1 -1
- data/assets/data/masonry.html +1 -1
- data/assets/data/masterslider.html +1 -1
- data/assets/data/menu.html +1 -1
- data/assets/data/mmenu.html +1 -1
- data/assets/data/mmenu_sidebar.html +1 -1
- data/assets/data/mmenu_toc.html +1 -1
- data/assets/data/panel.html +1 -1
- data/assets/data/quicklinks.html +1 -1
- data/assets/data/rtext_resizer.html +1 -1
- data/assets/data/slick.html +1 -1
- data/assets/data/speak2me.html +1 -1
- data/assets/data/swiper.html +313 -0
- data/assets/theme/j1/adapter/js/amplitude.30.js +1177 -0
- data/assets/theme/j1/adapter/js/amplitude.js +152 -121
- data/assets/theme/j1/adapter/js/j1.js +3 -3
- data/assets/theme/j1/adapter/js/masterslider.js +2 -1
- data/assets/theme/j1/adapter/js/swiper.js +231 -0
- data/assets/theme/j1/modules/amplitudejs/css/theme/uno/dark/amplitude.css +13 -3
- data/assets/theme/j1/modules/amplitudejs/css/theme/uno/dark/amplitude.min.css +1 -1
- data/assets/theme/j1/modules/amplitudejs/css/theme/uno/dark/player/large.css +53 -6
- data/assets/theme/j1/modules/amplitudejs/css/theme/uno/dark/player/large.min.css +2 -1
- data/assets/theme/j1/modules/amplitudejs/js/tech/ytp.15.js +1594 -0
- data/assets/theme/j1/modules/amplitudejs/js/tech/ytp.js +1617 -89
- data/assets/theme/j1/modules/amplitudejs/js/visualizations/bar.js +1 -1
- data/assets/theme/j1/modules/amplitudejs/js/visualizations/circular-equalizer.js +31 -1
- data/assets/theme/j1/modules/amplitudejs/js/visualizations/frequency-analyzer.js +1 -1
- data/assets/theme/j1/modules/amplitudejs/js/visualizations/michael-bromley.js +1 -1
- data/assets/theme/j1/modules/amplitudejs/js/visualizations/template.js +1 -1
- data/assets/theme/j1/modules/photoswipe/.version_5.4.4 +6 -0
- data/assets/theme/j1/modules/photoswipe/LICENSE +21 -0
- data/assets/theme/j1/modules/photoswipe/README.md +32 -0
- data/assets/theme/j1/modules/photoswipe/css/org/photoswipe-dynamic-caption-plugin.umd.min.js +5 -0
- data/assets/theme/j1/modules/photoswipe/css/org/photoswipe.css +420 -0
- data/assets/theme/j1/modules/photoswipe/css/photoswipe-caption-plugin.css +67 -0
- data/assets/theme/j1/modules/photoswipe/css/photoswipe-caption-plugin.min.css +16 -0
- data/assets/theme/j1/modules/photoswipe/css/photoswipe.css +376 -0
- data/assets/theme/j1/modules/photoswipe/css/photoswipe.min.css +17 -0
- data/assets/theme/j1/modules/photoswipe/css/scss/photoswipe.scss +427 -0
- data/assets/theme/j1/modules/photoswipe/example/photoswipe-caption-plugin.html +237 -0
- data/assets/theme/j1/modules/photoswipe/example/test-gallery.html +36 -0
- data/assets/theme/j1/modules/photoswipe/js/README.md +43 -0
- data/assets/theme/j1/modules/photoswipe/js/photoswipe-caption-plugin.min.js +5 -0
- data/assets/theme/j1/modules/photoswipe/js/photoswipe-core.min.js +18 -0
- data/assets/theme/j1/modules/photoswipe/js/photoswipe-lightbox.min.js +18 -0
- data/assets/theme/j1/modules/swiper/.version_1.2.0 +15 -0
- data/assets/theme/j1/modules/swiper/LICENSE +20 -0
- data/assets/theme/j1/modules/swiper/README.md +95 -0
- data/assets/theme/j1/modules/swiper/css/swiper-bundle.css +740 -0
- data/assets/theme/j1/modules/swiper/css/swiper-bundle.min..css +17 -0
- data/assets/theme/j1/modules/swiper/css/theme/uno.css +249 -0
- data/assets/theme/j1/modules/swiper/css/theme/uno.min.css +154 -0
- data/assets/theme/j1/modules/swiper/js/swiper-bundle.js +9785 -0
- data/assets/theme/j1/modules/swiper/js/swiper-bundle.min.js +17 -0
- data/assets/theme/j1/modules/swiper/swiperjs.com-demos.url +2 -0
- data/lib/j1/version.rb +1 -1
- data/lib/starter_web/README.md +5 -5
- data/lib/starter_web/_config.yml +1 -1
- data/lib/starter_web/_data/modules/amplitude.yml +374 -39
- data/lib/starter_web/_data/modules/defaults/amplitude.yml +60 -35
- data/lib/starter_web/_data/modules/defaults/slick.yml +1 -1
- data/lib/starter_web/_data/modules/defaults/swiper.yml +515 -0
- data/lib/starter_web/_data/modules/swiper.yml +227 -0
- data/lib/starter_web/_data/resources.yml +53 -1
- data/lib/starter_web/_data/templates/feed.xml +1 -1
- data/lib/starter_web/_plugins/asciidoctor/amplitude-block.rb +1 -0
- data/lib/starter_web/_plugins/asciidoctor/videojs-block.rb +0 -4
- data/lib/starter_web/_plugins/index/lunr.rb +1 -1
- data/lib/starter_web/assets/video/poster/youtube/faelle_des_bnd/der_unverzichtbare_feind.jpg +0 -0
- data/lib/starter_web/assets/video/poster/youtube/faelle_des_bnd/ein_diener_vieler_herren.jpg +0 -0
- data/lib/starter_web/assets/video/poster/youtube/the_piano/the-piano.jpg +0 -0
- data/lib/starter_web/package.json +1 -1
- data/lib/starter_web/pages/public/_includes/attributes.asciidoc +45 -0
- data/lib/starter_web/pages/public/_includes/documents/photoswipe/200_photoswipe_parameters.asciidoc +510 -0
- data/lib/starter_web/pages/public/_includes/documents/photoswipe/210_photoswipe_lightbox_parameters.asciidoc +98 -0
- data/lib/starter_web/pages/public/_includes/documents/photoswipe/300_caption_plugin_for_photoSwipe.asciidoc +327 -0
- data/lib/starter_web/pages/public/_includes/documents/swiper/100_swiper_features.asciidoc +50 -0
- data/lib/starter_web/pages/public/_includes/documents/swiper/100_swiper_html_layout.asciidoc +122 -0
- data/lib/starter_web/pages/public/_includes/documents/swiper/100_swiper_initialization.asciidoc +53 -0
- data/lib/starter_web/pages/public/_includes/documents/swiper/110_swiper_common_options.asciidoc +43 -0
- data/lib/starter_web/pages/public/_includes/documents/swiper/200_swiper_parameters_a_k.asciidoc +994 -0
- data/lib/starter_web/pages/public/_includes/documents/swiper/200_swiper_parameters_l_o.asciidoc +473 -0
- data/lib/starter_web/pages/public/_includes/documents/swiper/200_swiper_parameters_p_s.asciidoc +700 -0
- data/lib/starter_web/pages/public/_includes/documents/swiper/200_swiper_parameters_t_z.asciidoc +413 -0
- data/lib/starter_web/pages/public/_includes/documents/swiper/300_swiper_instance_properties.asciidoc +873 -0
- data/lib/starter_web/pages/public/_includes/documents/swiper/400_swiper_modules.asciidoc +2514 -0
- data/lib/starter_web/pages/public/_includes/documents/swiper/500_swiper_methods.asciidoc +989 -0
- data/lib/starter_web/pages/public/_includes/documents/swiper/600_swiper_events.asciidoc +1534 -0
- data/lib/starter_web/pages/public/amplitude_yt_tester.adoc +77 -63
- data/lib/starter_web/pages/public/photoswipe_api.adoc +150 -0
- data/lib/starter_web/pages/public/swiper_api.adoc +128 -0
- data/lib/starter_web/pages/public/swiper_tester.adoc +973 -0
- data/lib/starter_web/pages/public/tour/modal_extentions.adoc +12 -5
- data/lib/starter_web/pages/public/tour/play_audio.adoc +60 -5
- data/lib/starter_web/pages/public/tour/play_video.adoc +30 -0
- data/lib/starter_web/pages/public/tour/present_images.adoc +5 -5
- metadata +56 -3
- data/assets/theme/j1/modules/amplitudejs/js/tech/youtube_example.js +0 -211
data/lib/starter_web/pages/public/_includes/documents/swiper/200_swiper_parameters_l_o.asciidoc
ADDED
@@ -0,0 +1,473 @@
|
|
1
|
+
[role="mt-5"]
|
2
|
+
== Options L - O
|
3
|
+
|
4
|
+
List of available Swiper parameters (properties) alphabetically ordered
|
5
|
+
from *L* to *O*. Find parameter settings also with the
|
6
|
+
https://swiperjs.com/swiper-api[Swiper Documentation, {browser-window--new}].
|
7
|
+
|
8
|
+
|
9
|
+
[role="mt-4"]
|
10
|
+
=== lazyPreloadPrevNext
|
11
|
+
|
12
|
+
Number of next and previous slides to be preloaded.
|
13
|
+
|
14
|
+
[cols="3,2,2,5a", subs=+macros, options="header", width="100%", role="rtable mt-4"]
|
15
|
+
|===
|
16
|
+
|Name |Type |Default |Description
|
17
|
+
|
18
|
+
|`lazyPreloadPrevNext`
|
19
|
+
|number
|
20
|
+
|0
|
21
|
+
|Number of next and previous slides to preload. Only applicable if using
|
22
|
+
*lazy loading*.
|
23
|
+
|
24
|
+
|===
|
25
|
+
|
26
|
+
[role="mt-4"]
|
27
|
+
=== lazyPreloaderClass
|
28
|
+
|
29
|
+
Set CSS class name of lazy preloader.
|
30
|
+
|
31
|
+
[cols="3,2,2,5a", subs=+macros, options="header", width="100%", role="rtable mt-4"]
|
32
|
+
|===
|
33
|
+
|Name |Type |Default |Description
|
34
|
+
|
35
|
+
|`lazyPreloaderClass`
|
36
|
+
|string
|
37
|
+
|_swiper-lazy-preloader_
|
38
|
+
|CSS class name of lazy preloader.
|
39
|
+
|
40
|
+
|===
|
41
|
+
|
42
|
+
[role="mt-4"]
|
43
|
+
=== longSwipes
|
44
|
+
|
45
|
+
Enable or disable long swipes.
|
46
|
+
|
47
|
+
[cols="3,2,2,5a", subs=+macros, options="header", width="100%", role="rtable mt-4"]
|
48
|
+
|===
|
49
|
+
|Name |Type |Default |Description
|
50
|
+
|
51
|
+
|`longSwipes`
|
52
|
+
|boolean
|
53
|
+
|true
|
54
|
+
|Set to `false` if you want to disable long swipes.
|
55
|
+
|
56
|
+
|===
|
57
|
+
|
58
|
+
[role="mt-4"]
|
59
|
+
=== longSwipesMs
|
60
|
+
|
61
|
+
Set the minimal duration (in ms) to trigger long swipes.
|
62
|
+
|
63
|
+
[cols="3,2,2,5a", subs=+macros, options="header", width="100%", role="rtable mt-4"]
|
64
|
+
|===
|
65
|
+
|Name |Type |Default |Description
|
66
|
+
|
67
|
+
|`longSwipesMs`
|
68
|
+
|number
|
69
|
+
|300
|
70
|
+
|Minimal duration (in ms) to trigger swipe to next/previous slide
|
71
|
+
during long swipes.
|
72
|
+
|
73
|
+
|===
|
74
|
+
|
75
|
+
[role="mt-4"]
|
76
|
+
=== longSwipesRatio
|
77
|
+
|
78
|
+
Set the ratio to trigger swipe to next/previous slide during long swipes.
|
79
|
+
|
80
|
+
[cols="3,2,2,5a", subs=+macros, options="header", width="100%", role="rtable mt-4"]
|
81
|
+
|===
|
82
|
+
|Name |Type |Default |Description
|
83
|
+
|
84
|
+
|`longSwipesRatio`
|
85
|
+
|number
|
86
|
+
|0.5
|
87
|
+
|Ratio to trigger swipe to next/previous slide during long swipes.
|
88
|
+
|
89
|
+
|===
|
90
|
+
|
91
|
+
[role="mt-4"]
|
92
|
+
=== loop
|
93
|
+
|
94
|
+
Enable or disable continuous loop mode.
|
95
|
+
|
96
|
+
[cols="3,2,2,5a", subs=+macros, options="header", width="100%", role="rtable mt-4"]
|
97
|
+
|===
|
98
|
+
|Name |Type |Default |Description
|
99
|
+
|
100
|
+
|`loop`
|
101
|
+
|boolean
|
102
|
+
|false
|
103
|
+
|Set to `true` to enable continuous loop mode.
|
104
|
+
|
105
|
+
Because of nature of how the loop mode works (it will rearrange slides),
|
106
|
+
total number of slides must be:
|
107
|
+
|
108
|
+
* more than or equal to `lidesPerView` + `slidesPerGroup`
|
109
|
+
* even to `slidesPerGroup` (or use `loopAddBlankSlides` parameter)
|
110
|
+
* even to `grid.rows` (or use `loopAddBlankSlides` parameter)
|
111
|
+
|===
|
112
|
+
|
113
|
+
[role="mt-4"]
|
114
|
+
=== loopAddBlankSlides
|
115
|
+
|
116
|
+
Add blank slides if you use Grid or `slidesPerGroup` on total amount of
|
117
|
+
slides is *not even* to `slidesPerGroup`.
|
118
|
+
|
119
|
+
[cols="3,2,2,5a", subs=+macros, options="header", width="100%", role="rtable mt-4"]
|
120
|
+
|===
|
121
|
+
|Name |Type |Default |Description
|
122
|
+
|
123
|
+
|`loopAddBlankSlides`
|
124
|
+
|boolean
|
125
|
+
|true
|
126
|
+
|Automatically adds blank slides if you use Grid or `slidesPerGroup`
|
127
|
+
and the total amount of slides is not even to `slidesPerGroup` or to
|
128
|
+
`grid.rows`.
|
129
|
+
|
130
|
+
|===
|
131
|
+
|
132
|
+
[role="mt-4"]
|
133
|
+
=== loopAdditionalSlides
|
134
|
+
|
135
|
+
Allows to increase amount of looped slides.
|
136
|
+
|
137
|
+
[cols="3,2,2,5a", subs=+macros, options="header", width="100%", role="rtable mt-4"]
|
138
|
+
|===
|
139
|
+
|Name |Type |Default |Description
|
140
|
+
|
141
|
+
|`loopAdditionalSlides`
|
142
|
+
|number
|
143
|
+
|0
|
144
|
+
|Allows to increase amount of looped slides.
|
145
|
+
|
146
|
+
|===
|
147
|
+
|
148
|
+
[role="mt-4"]
|
149
|
+
=== loopPreventsSliding
|
150
|
+
|
151
|
+
Set *slideNext* \| *slidePrev* to do nothing while slider is animating
|
152
|
+
in *loop* mode.
|
153
|
+
|
154
|
+
[cols="3,2,2,5a", subs=+macros, options="header", width="100%", role="rtable mt-4"]
|
155
|
+
|===
|
156
|
+
|Name |Type |Default |Description
|
157
|
+
|
158
|
+
|`loopPreventsSliding`
|
159
|
+
|boolean
|
160
|
+
|true
|
161
|
+
|If enabled then slideNext/Prev will do nothing while slider is animating
|
162
|
+
in loop mode.
|
163
|
+
|
164
|
+
|===
|
165
|
+
|
166
|
+
[role="mt-4"]
|
167
|
+
=== maxBackfaceHiddenSlides
|
168
|
+
|
169
|
+
Reduce visual *flicker* in Safari Browser.
|
170
|
+
|
171
|
+
[cols="3,2,2,5a", subs=+macros, options="header", width="100%", role="rtable mt-4"]
|
172
|
+
|===
|
173
|
+
|Name |Type |Default |Description
|
174
|
+
|
175
|
+
|`maxBackfaceHiddenSlides`
|
176
|
+
|number
|
177
|
+
|10
|
178
|
+
|If total number of slides less than specified here value, then Swiper
|
179
|
+
will enable `backface-visibility: hidden` on slide elements to reduce
|
180
|
+
visual *flicker* in Safari Browser.
|
181
|
+
|
182
|
+
[CAUTION]
|
183
|
+
====
|
184
|
+
It is not recommended to enable on large amount of slides as it will
|
185
|
+
reduce performance.
|
186
|
+
====
|
187
|
+
|
188
|
+
|===
|
189
|
+
|
190
|
+
[role="mt-4"]
|
191
|
+
=== modules
|
192
|
+
|
193
|
+
Configure array with Swiper modules.
|
194
|
+
|
195
|
+
[cols="3,2,2,5a", subs=+macros, options="header", width="100%", role="rtable mt-4"]
|
196
|
+
|===
|
197
|
+
|Name |Type |Default |Description
|
198
|
+
|
199
|
+
|`modules`
|
200
|
+
|any[]
|
201
|
+
|*no defaults*
|
202
|
+
|Array with Swiper modules.
|
203
|
+
|
204
|
+
[source, js]
|
205
|
+
----
|
206
|
+
import Swiper from 'swiper';
|
207
|
+
import { Navigation, Pagination } from 'swiper/modules';
|
208
|
+
|
209
|
+
const swiper = new Swiper('.swiper', {
|
210
|
+
modules: [ Navigation, Pagination ]
|
211
|
+
});
|
212
|
+
----
|
213
|
+
|
214
|
+
|===
|
215
|
+
|
216
|
+
[role="mt-4"]
|
217
|
+
=== mousewheel
|
218
|
+
|
219
|
+
Enables or disbales navigation through slides using mouse wheel.
|
220
|
+
|
221
|
+
[cols="3,2,2,5a", subs=+macros, options="header", width="100%", role="rtable mt-4"]
|
222
|
+
|===
|
223
|
+
|Name |Type |Default |Description
|
224
|
+
|
225
|
+
|`mousewheel`
|
226
|
+
|any
|
227
|
+
|*no defaults*
|
228
|
+
|Enables navigation through slides using mouse wheel. Object with
|
229
|
+
mousewheel parameters or boolean `true` to enable with default settings.
|
230
|
+
|
231
|
+
[source, js]
|
232
|
+
----
|
233
|
+
const swiper = new Swiper('.swiper', {
|
234
|
+
mousewheel: {
|
235
|
+
invert: true
|
236
|
+
}
|
237
|
+
});
|
238
|
+
----
|
239
|
+
|
240
|
+
|===
|
241
|
+
|
242
|
+
[role="mt-4"]
|
243
|
+
=== navigation
|
244
|
+
|
245
|
+
Enables or disbales navigation through slides using mouse wheel.
|
246
|
+
|
247
|
+
[cols="3,2,2,5a", subs=+macros, options="header", width="100%", role="rtable mt-4"]
|
248
|
+
|===
|
249
|
+
|Name |Type |Default |Description
|
250
|
+
|
251
|
+
|`navigation`
|
252
|
+
|any
|
253
|
+
|*no defaults*
|
254
|
+
|Object with navigation parameters or boolean `true` to enable with
|
255
|
+
default settings.
|
256
|
+
|
257
|
+
[source, js]
|
258
|
+
----
|
259
|
+
const swiper = new Swiper('.swiper', {
|
260
|
+
navigation: {
|
261
|
+
nextEl: '.swiper-button-next',
|
262
|
+
prevEl: '.swiper-button-prev'
|
263
|
+
}
|
264
|
+
});
|
265
|
+
----
|
266
|
+
|
267
|
+
|===
|
268
|
+
|
269
|
+
|
270
|
+
[role="mt-4"]
|
271
|
+
=== nested
|
272
|
+
|
273
|
+
Control Swiper for correct touch events interception.
|
274
|
+
|
275
|
+
[cols="3,2,2,5a", subs=+macros, options="header", width="100%", role="rtable mt-4"]
|
276
|
+
|===
|
277
|
+
|Name |Type |Default |Description
|
278
|
+
|
279
|
+
|`nested`
|
280
|
+
|boolean
|
281
|
+
|false
|
282
|
+
|Set to `true` on Swiper for correct touch events interception. Use only on
|
283
|
+
swipers that use same direction as the parent one.
|
284
|
+
|
285
|
+
|===
|
286
|
+
|
287
|
+
[role="mt-4"]
|
288
|
+
=== noSwiping
|
289
|
+
|
290
|
+
Control *no* swiping on elements specified by (CSS) `noSwipingClass`.
|
291
|
+
|
292
|
+
[cols="3,2,2,5a", subs=+macros, options="header", width="100%", role="rtable mt-4"]
|
293
|
+
|===
|
294
|
+
|Name |Type |Default |Description
|
295
|
+
|
296
|
+
|`noSwiping`
|
297
|
+
|boolean
|
298
|
+
|true
|
299
|
+
|Enable/disable swiping on elements matched to class specified in
|
300
|
+
`noSwipingClass`.
|
301
|
+
|
302
|
+
|===
|
303
|
+
|
304
|
+
[role="mt-4"]
|
305
|
+
=== noSwipingClass
|
306
|
+
|
307
|
+
Specify (CSS) elements to disable swiping on.
|
308
|
+
|
309
|
+
[cols="3,2,2,5a", subs=+macros, options="header", width="100%", role="rtable mt-4"]
|
310
|
+
|===
|
311
|
+
|Name |Type |Default |Description
|
312
|
+
|
313
|
+
|`noSwipingClass`
|
314
|
+
|string
|
315
|
+
|_swiper-no-swiping_
|
316
|
+
|Specify `noSwiping` element css class.
|
317
|
+
|
318
|
+
|===
|
319
|
+
|
320
|
+
|
321
|
+
[role="mt-4"]
|
322
|
+
=== noSwipingSelector
|
323
|
+
|
324
|
+
Specify (CSS) elements to disable swiping on.
|
325
|
+
|
326
|
+
[cols="3,2,2,5a", subs=+macros, options="header", width="100%", role="rtable mt-4"]
|
327
|
+
|===
|
328
|
+
|Name |Type |Default |Description
|
329
|
+
|
330
|
+
|`noSwipingSelector`
|
331
|
+
|string
|
332
|
+
|*no defaults*
|
333
|
+
|Can be used instead of `noSwipingClass` to specify elements to disable
|
334
|
+
swiping on. For example `input` will disable swiping on all inputs.
|
335
|
+
|
336
|
+
|===
|
337
|
+
|
338
|
+
[role="mt-4"]
|
339
|
+
=== normalizeSlideIndex
|
340
|
+
|
341
|
+
Normalize slide index.
|
342
|
+
|
343
|
+
[cols="3,2,2,5a", subs=+macros, options="header", width="100%", role="rtable mt-4"]
|
344
|
+
|===
|
345
|
+
|Name |Type |Default |Description
|
346
|
+
|
347
|
+
|`normalizeSlideIndex`
|
348
|
+
|boolean
|
349
|
+
|true
|
350
|
+
|Normalize slide index.
|
351
|
+
|
352
|
+
|===
|
353
|
+
|
354
|
+
[role="mt-4"]
|
355
|
+
=== observeParents
|
356
|
+
|
357
|
+
Configure to watch *Mutations* for Swiper parent elements.
|
358
|
+
|
359
|
+
[cols="3,2,2,5a", subs=+macros, options="header", width="100%", role="rtable mt-4"]
|
360
|
+
|===
|
361
|
+
|Name |Type |Default |Description
|
362
|
+
|
363
|
+
|`observeParents`
|
364
|
+
|boolean
|
365
|
+
|false
|
366
|
+
|Set to `true` if you also need to watch *Mutations* for Swiper
|
367
|
+
parent elements.
|
368
|
+
|
369
|
+
|===
|
370
|
+
|
371
|
+
[role="mt-4"]
|
372
|
+
=== observeSlideChildren
|
373
|
+
|
374
|
+
Configure to watch *Mutations* for Swiper slide child elements.
|
375
|
+
|
376
|
+
[cols="3,2,2,5a", subs=+macros, options="header", width="100%", role="rtable mt-4"]
|
377
|
+
|===
|
378
|
+
|Name |Type |Default |Description
|
379
|
+
|
380
|
+
|`observeSlideChildren`
|
381
|
+
|boolean
|
382
|
+
|false
|
383
|
+
|Set to `true` if you also need to watch *Mutations* for Swiper slide
|
384
|
+
child elements.
|
385
|
+
|
386
|
+
|===
|
387
|
+
|
388
|
+
[role="mt-4"]
|
389
|
+
=== observer
|
390
|
+
|
391
|
+
Enable a *Mutation Observer* on Swiper and its elements.
|
392
|
+
|
393
|
+
[cols="3,2,2,5a", subs=+macros, options="header", width="100%", role="rtable mt-4"]
|
394
|
+
|===
|
395
|
+
|Name |Type |Default |Description
|
396
|
+
|
397
|
+
|`observer`
|
398
|
+
|boolean
|
399
|
+
|false
|
400
|
+
|Set to `true` to enable a *Mutation Observer* on Swiper and its elements.
|
401
|
+
In this case Swiper will be updated (reinitialized) each time if you change
|
402
|
+
its style (like hide/show) or modify its child elements
|
403
|
+
(like adding/removing slides).
|
404
|
+
|
405
|
+
|===
|
406
|
+
|
407
|
+
[role="mt-4"]
|
408
|
+
=== on
|
409
|
+
|
410
|
+
Register event handlers.
|
411
|
+
|
412
|
+
[cols="3,2,2,5a", subs=+macros, options="header", width="100%", role="rtable mt-4"]
|
413
|
+
|===
|
414
|
+
|Name |Type |Default |Description
|
415
|
+
|
416
|
+
|`on`
|
417
|
+
|object
|
418
|
+
|*no defaults*
|
419
|
+
|Register event handlers.
|
420
|
+
|
421
|
+
[source, js]
|
422
|
+
----
|
423
|
+
const swiper = new Swiper('.swiper', {
|
424
|
+
swiper.on('click', (swiper, event) => {
|
425
|
+
// do something
|
426
|
+
}
|
427
|
+
});
|
428
|
+
----
|
429
|
+
|
430
|
+
|===
|
431
|
+
|
432
|
+
[role="mt-4"]
|
433
|
+
=== onAny
|
434
|
+
|
435
|
+
Register event handlers on *all* events.
|
436
|
+
|
437
|
+
[cols="3,2,2,5a", subs=+macros, options="header", width="100%", role="rtable mt-4"]
|
438
|
+
|===
|
439
|
+
|Name |Type |Default |Description
|
440
|
+
|
441
|
+
|`onAny`
|
442
|
+
|function([.text-primary]#handler#)
|
443
|
+
|*no defaults*
|
444
|
+
|Add event listener that will be fired on all events.
|
445
|
+
|
446
|
+
[source, js]
|
447
|
+
----
|
448
|
+
const swiper = new Swiper('.swiper', {
|
449
|
+
onAny(eventName, ...args) {
|
450
|
+
console.log('Event: ', eventName);
|
451
|
+
console.log('Event data: ', args);
|
452
|
+
}
|
453
|
+
});
|
454
|
+
----
|
455
|
+
|
456
|
+
|===
|
457
|
+
|
458
|
+
[role="mt-4"]
|
459
|
+
=== oneWayMovement
|
460
|
+
|
461
|
+
Configure swipe slides only forward (one-way) regardless of swipe direction.
|
462
|
+
|
463
|
+
[cols="3,2,2,5a", subs=+macros, options="header", width="100%", role="rtable mt-4"]
|
464
|
+
|===
|
465
|
+
|Name |Type |Default |Description
|
466
|
+
|
467
|
+
|'oneWayMovement'
|
468
|
+
|boolean
|
469
|
+
|false
|
470
|
+
|When *enabled*, will swipe slides only forward (one-way) regardless of
|
471
|
+
swipe direction.
|
472
|
+
|
473
|
+
|===
|