You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
A reactive, accessible, multi-thumb, range slider with the ability to display "pips" or "notches" along the range. Importable as a svelte-component, or used directly in any javascript application.
6
7
7
8

@@ -18,7 +18,6 @@ A reactive, accessible, multi-thumb, range slider with the ability to display "p
18
18
19
19
## features
20
20
21
-
22
21

23
22
24
23
- ✨ fully customisable, stylable & accessible
@@ -34,6 +33,7 @@ A reactive, accessible, multi-thumb, range slider with the ability to display "p
34
33
## install
35
34
36
35
Open your project and use the command line to install the package;
36
+
37
37
```bash
38
38
yarn add svelte-range-slider-pips --dev # or
39
39
npm install svelte-range-slider-pips --save-dev # if you prefer npm
@@ -74,7 +74,7 @@ Assuming you have a Svelte app up and running;
74
74
75
75
### as a JS module
76
76
77
-
If you're building a bleeding-edge JS application (not svelte), you might
77
+
If you're building a bleeding-edge JS application (not svelte), you might
78
78
want to use js imports (`import`)
79
79
80
80
```js
@@ -89,7 +89,9 @@ var mySlider = new RangeSlider({
89
89
---
90
90
91
91
## props (options)
92
+
92
93
### slider props
94
+
93
95
prop | type | default | description
94
96
-----|------|---------|-------------
95
97
**values** | `Array` | `[50]` | Array of values to apply on the slider. Multiple values creates multiple handles. (_**note:** A slider with `range` property set can only have two values max_)
**pipstep** | `Number` | `1`/`10`/`20` | Every `nth` step to show a pip for. This has multiple defaults depending on `values` property
105
107
**first** | `Boolean`/`String` | `false` | Whether to show a pip or label for the first value on slider. Use `first='label'` to show a label value
106
108
**last** | `Boolean`/`String` | `false` | Whether to show a pip or label for the last value on slider. Use `last='label'` to show a label value
107
-
**rest** | `Boolean`/`String` | `false` | Whether to show a pip or label for the all other values. Use `rest='label'` to show a label value
109
+
**rest** | `Boolean`/`String` | `false` | Whether to show a pip or label for all other values. Use `rest='label'` to show a label value
110
+
**all** | `Boolean`/`String` | `false` | Whether to show a pip or label for all values. Same as combining `first`, `last` and `rest`. Use `all='label'` to show a label value
108
111
**prefix** | `String` | `""` | A string to prefix to all displayed values
109
112
**suffix** | `String` | `""` | A string to suffix to all displayed values
110
113
**disabled** | `Boolean` | `false` | Determine if the slider is disabled, or enabled _(only disables interactions, and events)_
0 commit comments