Increases amount of pre-rendered slides before active slide
Enables DOM cache of rendering slides html elements. Once they are rendered they will be saved to cache and reused from it.
Whether the virtual slides are enabled
When enabled (by default) it will update Swiper layout right after renderExternal called. Useful to disable and update swiper manually when used with render libraries that renders asynchronously
Array with slides
Function for external rendering (e.g. using some other library to handle DOM manipulations and state like React.js or Vue.js). As an argument it accepts data
object with the following properties:
offset
- slides left/top offset in pxfrom
- index of first slide required to be renderedto
- index of last slide required to be renderedslides
- array with slide items to be renderedFunction to render slide. As an argument it accepts current slide item for slides
array and index number of the current slide. Function must return an outer HTML of the swiper slide or slide HTML element.
Generated using TypeDoc
Increases amount of pre-rendered slides after active slide
0