# j-Slider

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

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

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.

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