ForgeКомпоненти
bg

Компоненти

j-Slider

jComponent 20 · jcomponent@20 component Примерът е зареден с jComponent 20

Този слайдър работи само с 100% X-оси. Изход: percentage (от 0 до 100).


Конфигуриране:

  • disabled {Boolean} може да деактивира
  • steps {Number} - броят на стъпките на 100%

Използвайте го с <ui-component name="slider">Когато компонентът все още не е зареден, jComponent Изтегляне на първия адрес в DEF.fallback (След това Componentator Източник: Питър Шерка Componentator Съставни съставки, лиценз на 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>