ForgeКомпоненти
bg

Компоненти

j-Swiper

jComponent 20 · jcomponent@20 component Примерът е зареден с jComponent 20

Конфигуриране:

  • 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.

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>