ForgeComponents
en

Components

j-Slider

jComponent 20 · jcomponent@20 component Example loaded with jComponent 20

This slider works only with 100% X axis. Output: percentage (from 0 to 100).


Configuration:

  • disabled {Boolean} can disable the component
  • steps {Number} a count of steps per 100%

Use it with <ui-component name="slider">. 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.

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>