ForgeKomponenty
pl

Komponenty

j-Slider

jComponent 20 · jcomponent@20 component Przykład załadowany z jComponent 20

Ten plakat działa tylko z 100% osi X. Wydajność: percentage (od 0 do 100).


Konfiguracja:

  • disabled {Boolean} może wyłączyć składnik
  • steps {Number} - liczba kroków na 100%

Użyj go z <ui-component name="slider">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.

example.html
<div style="max-width:300px">
	<ui-component name="slider" path="myrange"></ui-component>
	<ui-bind path="myrange" config="text:value + '%'" class="help block"></ui-bind>
	<br />
	<ui-component name="slider" path="myrange2"></ui-component>
	<ui-bind path="myrange2" config="text:value + '%'" class="help block"></ui-bind>
	<br />
	<ui-component name="slider" path="myrange" config="disabled:1"></ui-component>
	<ui-bind path="myrange" config="text:value + '%'" class="help block"></ui-bind>
</div>

<script>
	var myrange = 30;
	var myrange2 = 80;
</script>