# j-ContentSlider

> Poniższy kod rozwiązuje problem z renderowaniem komponentu, gdy komponent jest wyświetlany dynamicznie.

Framework: jcomponent20
Product: jComponent 20 (jcomponent@20)
Language: pl
Content-SHA256: 93a7d8bc36997442821f6d945688b413383a41f8925c4ca0b02ba2d5fe1d945a
Snapshot: c0700e321579725c5cf4f5ace1ad7d2866d1b4f93c24a63c0b41b6b7998e976c
Sources: components@910ed1a86f6e72b4f031d3ad0dc7844f9fc5cb8e
Review: not-recorded

- Wspierają wielkie cechy
- Zastosowanie systemu Bootstrap Grid


__Konfiguracja__:

- `selector {String}` Opcjonalne, default `a`
- `interval {Number}` Opcjonalny, odświeżający (default `3000`)
- `cache {String}` Opcjonalny, gdy jest wypełniony, składnik przechowuje aktualny stan w `localStorage` - 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.

```javascript
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.

```html example.html
<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>
```
