# j-Swiper

> j-SwiperВръзката за [Библиотека на Swiper.js](https://swiperjs.com/)• Лесно използване

Framework: jcomponent20
Product: jComponent 20 (jcomponent@20)
Language: bg
Content-SHA256: 0be48203b7d5fec3eff21e2eac82bc0817b2295d2142f80587575fd942e3e192
Snapshot: c0700e321579725c5cf4f5ace1ad7d2866d1b4f93c24a63c0b41b6b7998e976c
Sources: components@910ed1a86f6e72b4f031d3ad0dc7844f9fc5cb8e
Review: not-recorded

- Връзката за [Библиотека на Swiper.js](https://swiperjs.com/)
__Конфигуриране__:

- `slidesperview {Number}` Изчисляване на елементите в един слайд (предварително: `1`)
- `spacebetween {Number}` - пространство между елементите (предварително: `0`)
- `navigation {Boolean}` показва/съкрива навигационни стрели (предварително: `false`)
- `pagination {Boolean}` Показване/скъпване на страници (дефолт: `false`)
- `autoplay {Boolean}` позволява автоплаиране (дефолт: `false`)
- `delay {Number}` закъснение между промяната на слайдове, работи само с автоплаи (предварително: `2500`)
- `loop {Boolean}` безкрайност кръг през слайдове (дефолт: `false`)
- __NEW__ `reset {Number}` време, след което превключвателят започва отново и се връща към първата картина (влизане в минути)
- __NEW__ `freemode {Boolean}` движещи се слайдове без фиксирана съвпадение с индивидуални слайди (дефолт: `false`)

Използвайте го с `<ui-component name="swiper">`Когато компонентът все още не е зареден, jComponent Изтегляне на първия адрес в `DEF.fallback` (След това Componentator Автор: Додо Мартон. източник: Componentator Съставни съставки, лиценз на 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>
```
