ForgeKomponensek
hu

Komponensek

j-Swiper

jComponent 20 · jcomponent@20 component Példa betöltve a jComponent 20-szal

konfiguráció:

  • slidesperview {Number} Az elemek számlálása az egyik slide-ben (default: 1)
  • spacebetween {Number} egy hely az elemek között (default: 0)
  • navigation {Boolean} mutató/hide navigációs szálak (default: false)
  • pagination {Boolean} show/hide oldalirányító golyó (default: false)
  • A autoplay {Boolean} engedélyezi az autoplayt (default: false)
  • delay {Number} egy késés a slides változás, működik autoplay csak (default: 2500)
  • loop {Boolean} végtelen kör a nyilakon keresztül (default: false)
  • NEW reset {Number} idle idő, amely után a váltó újraindul és visszatér az első képhez (minden percben belép)
  • NEW freemode {Boolean} mozgó slides rögzített illeszkedés nélkül az egyéni slides (default: false)

Használja a <ui-component name="swiper">Amennyiben a készülék még nem tölthető le, jComponent letöltés az első felhasználásra a címről DEF.fallback (Azt a Componentator CDN default). szerző: Dodo Marton. forrás: a Componentator Az összetevők raktár, MIT licenc.

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>