# j-PriceRange

> The component stores value as string 200-500, explanation: from-to.

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

__Attributes__:
- `data-min="0"` a minimal value (default `0`)
- `data-max="0"` a maximal value (default `10000`)
- `data-step="100"` step (default `100`)
- `data-currency="$ {0}"` formats current values (default `{0} &euro;`)

The component stores value as string `200-500`, explanation: `from-to`.

Use it with `<ui-component name="pricerange">`. 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="width:600px">
	<ui-component name="pricerange" path="filter.price" data-min="0" data-step="100" data-max="1000"></ui-component>
</div>

<script>
	var filter = { price: '200-800' };
</script>
```
