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
This slider is built as an addon for ember applications. Follow the instructions in the [demo](https://github.com/RVenkatesh/Ember-slider#demo) section to see it in action.
4
4
@@ -26,9 +26,7 @@ Include the ember slider component in the template like any other normal ember c
26
26
Add configuration options if necessary in the corresponding route's controller or component's object
27
27
```
28
28
{
29
-
type: {
30
-
closed: true
31
-
},
29
+
type: 'closed',
32
30
range: {
33
31
min: 0,
34
32
max: 100
@@ -44,7 +42,7 @@ The component provides different parameters as mentioned below.
44
42
| Params | Default value | Description |
45
43
| --- | --- | --- |
46
44
| initialValue |```0```| To load the slider with value other than min value. |
47
-
| config |```null```| General settings for the slider. Refer [Configurations options](https://github.com/RVenkatesh/Ember-slider#configuration-options) section for details about the different options available. |
45
+
| config |```null```| General settings for the slider liker min & max, likert and more. Refer [Configurations options](https://github.com/RVenkatesh/Ember-slider#configuration-options) section for details about the different options available. |
48
46
49
47
##### Callback parameters
50
48
@@ -58,6 +56,29 @@ Apart the above parameters, the following are the callback function available fo
58
56
59
57
| Option | Default | Description |
60
58
| --- | --- | --- |
61
-
| type | 'sleek' | Changes the look and feel of the slider. Currently it supports only 'sleek' and 'closed' |
59
+
| type | 'sleek' | Changes the look and feel of the slider. Currently it supports only 'sleek' and 'closed'.|
62
60
| range | { min: 0, max: 100 } | This object can be used to change the min and max of the slider. This can be of following format. ```{ min: `min_value`, max: `max_value` }```|
63
-
| noValue | false | Boolean to show or hide the display of value in the slider. ```true``` hides the value. |
61
+
| hideValue | false | Boolean to show or hide the display of value in the slider. ```true``` hides the value. |
62
+
| likert | {} | To enable slider as likert scale. Refer section [Likert scale options](https://github.com/RVenkatesh/Ember-Slider/tree/likert-scale-support#likert-scale-options) to know more about likert configuration. |
63
+
64
+
##### Likert scale options
65
+
The 'likert' configuration option allows the slider to function as likert scale. It can be enabled by passing the following to 'config' option
66
+
```
67
+
{
68
+
likert: {
69
+
enabled: true
70
+
}
71
+
}
72
+
```
73
+
74
+
Just enabling likert option would provide a 3-point likert scale slider with values ranging from 0 to 2. Likert scale can be customised by adding more settings inside likert. Following are the different likert config options available.
| points | 3 | Number of likert points to be shown. As of now ```ember-slider``` supports 3, 5 and 7 points. |
80
+
| labels |[]| Label text to be displayed under each likert point of the slider. If nothing has to be displayed, pass ```null```|
81
+
82
+
83
+
## Updating ember-slider
84
+
If you are updating one version of ember slider to other, please check out the [Release notes](https://github.com/RVenkatesh/Ember-Slider/wiki/Release-notes) page for any breaking changes (which are usually rare).
0 commit comments