j-ContentSlider
- supports great features
- works with Bootstrap Grid System
Configuration:
selector {String}Optional, defaultainterval {Number}Optional, refresh interval (default3000)cache {String}Optional, when it's filled then the component saves a current state into thelocalStorage- so when the user refreshes the page then the component continues from the last state
Redraw:
The code below solves a problem with rendering component when the the component is dynamically displayed.
SETTER('contentslider/refresh');Use it with <ui-component name="contentslider">. When the component is not loaded yet, jComponent downloads it on first use from the address in DEF.fallback (the Componentator CDN by default). Author: Peter Širka. Source: the Componentator components repository, MIT license.
<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>