# j-Swiper

> j-Swiper: Wrapper dla [Swiper.js biblioteka](https://swiperjs.com/)• Łatwa obsługa

Framework: jcomponent20
Product: jComponent 20 (jcomponent@20)
Language: pl
Content-SHA256: 95eaff43999c04890a273b16750f21586976817ec5aa11da773a323a6cfb4277
Snapshot: c0700e321579725c5cf4f5ace1ad7d2866d1b4f93c24a63c0b41b6b7998e976c
Sources: components@910ed1a86f6e72b4f031d3ad0dc7844f9fc5cb8e
Review: not-recorded

- Wrapper dla [Swiper.js biblioteka](https://swiperjs.com/)
__Konfiguracja__:

- `slidesperview {Number}` liczba elementów w jednym slajdzie (default: `1`)
- `spacebetween {Number}` - przestrzeń między elementami (default: `0`)
- Wskaźniki nawigacji `navigation {Boolean}` (default: `false`)
- `pagination {Boolean}` pokaz / ukrycie strona kulek (default: `false`)
- `autoplay {Boolean}` pozwala na autoplay (default: `false`)
- `delay {Number}` opóźnienie pomiędzy zmianami ślizgów, działając tylko z autopłytką (default: `2500`)
- `loop {Boolean}` nieskończoność przepływ przez ślady (default: `false`)
- __NEW__ `reset {Number}` idle czas, po którym swiper ponownie uruchamia się i wraca do pierwszego obrazu (wchodzi w kilka minut)
- __NEW__ `freemode {Boolean}` przepływowe ślady bez stałego dostosowania do pojedynczych śladów (default: `false`)

Użyj go z `<ui-component name="swiper">`Gdy element nie jest jeszcze ładowany, jComponent Pobierz go po pierwszym użyciu z adresu `DEF.fallback` (Wydaje się Componentator Autor: Dodo Marton Źródło: Componentator Zestaw składników, licencja MIT.

```html example.html
<div style="margin-bottom:30px">
	<ui-component name="swiper" path="datasource" config="slidesperview:3;spacebetween:30;pagination:1;navigation:1" class="hidden invisible">
		<script type="text/html">
			<div style="background-color:#E0E0E0;height:150px;color:#000">{{ name }}</div>
		</script>
	</ui-component>
</div>

<div>
	<ui-component name="swiper" config="slidesperview:3;autoplay:1" class="hidden invisible">
		<figure class="swiper-slide"><div style="background-color:#E0E0E0;height:150px;color:#000">A</div></figure>
		<figure class="swiper-slide"><div style="background-color:#E0E0E0;height:150px;color:#000">B</div></figure>
		<figure class="swiper-slide"><div style="background-color:#E0E0E0;height:150px;color:#000">C</div></figure>
		<figure class="swiper-slide"><div style="background-color:#E0E0E0;height:150px;color:#000">D</div></figure>
		<figure class="swiper-slide"><div style="background-color:#E0E0E0;height:150px;color:#000">E</div></figure>
		<figure class="swiper-slide"><div style="background-color:#E0E0E0;height:150px;color:#000">F</div></figure>
	</ui-component>
</div>
<script>
	var datasource = [{ name: 'A' }, { name: 'B' }, { name: 'C' }, { name: 'D' }, { name: 'E' }, { name: 'F' }, { name: 'G' }, { name: 'H' }, { name: 'I' }, { name: 'J' }]
</script>
```
