j-ContentSlider
- Wspierają wielkie cechy
- Zastosowanie systemu Bootstrap Grid
Konfiguracja:
selector {String}Opcjonalne, defaultainterval {Number}Opcjonalny, odświeżający (default3000)cache {String}Opcjonalny, gdy jest wypełniony, składnik przechowuje aktualny stan wlocalStorage- więc gdy użytkownik odświeża stronę, składnika kontynuuje z ostatniego stanu
Redraw:
Poniższy kod rozwiązuje problem z renderowaniem komponentu, gdy komponent jest wyświetlany dynamicznie.
SETTER('contentslider/refresh');Użyj go z <ui-component name="contentslider">Gdy element nie jest jeszcze ładowany, jComponent Pobierz go po pierwszym użyciu z adresu DEF.fallback (Wydaje się Componentator Autor: Peter Širka Źródło: Componentator Zestaw składników, licencja MIT.
<div class="row">
<div class="col-md-4 col-md-offset-4">
<ui-component name="contentslider" config="cache:id-for-caching-latest-state" class="hidden">
<a href="javascript:void(0)" style="background-color:red;height:50px;display:block;color:white">A</a>
<a href="javascript:void(0)" style="background-color:blue;height:50px;display:block;color:white">B</a>
<a href="javascript:void(0)" style="background-color:green;height:50px;display:block;color:white">C</a>
<a href="javascript:void(0)" style="background-color:gray;height:50px;display:block;color:white">D</a>
<a href="javascript:void(0)" style="background-color:black;height:50px;display:block;color:white">E</a>
</ui-component>
</div>
</div>