Skip to content

Commit 97e2dda

Browse files
committed
Updated the README.md
1 parent b06ebc1 commit 97e2dda

File tree

1 file changed

+50
-43
lines changed

1 file changed

+50
-43
lines changed

README.md

Lines changed: 50 additions & 43 deletions
Original file line numberDiff line numberDiff line change
@@ -31,49 +31,56 @@ The roundSlider has several properties and events to interact with the control p
3131
To know more about the **Options**, please check the [documentation](http://roundsliderui.com/document.html#options "Documentation about roundSlider Options").
3232

3333
```javascript
34-
$("#slider").roundSlider({
35-
min: 0,
36-
max: 100,
37-
step: 1,
38-
value: null,
39-
radius: 85,
40-
width: 16,
41-
handleSize: "+0",
42-
startAngle: 0,
43-
endAngle: "+360",
44-
animation: true,
45-
showTooltip: true,
46-
editableTooltip: true,
47-
readOnly: false,
48-
disabled: false,
49-
keyboardAction: true,
50-
mouseScrollAction: false,
51-
sliderType: "default",
52-
circleShape: "full",
53-
handleShape: "round",
54-
lineCap: "butt",
55-
56-
// the 'startValue' property decides at which point the slider should start.
57-
// otherwise, by default the slider starts with min value. this is mainly used
58-
// for min-range slider, where you can customize the min-range start position.
59-
startValue: null,
60-
61-
// SVG related properties
62-
svgMode: false,
63-
borderWidth: 1,
64-
borderColor: null,
65-
pathColor: null,
66-
rangeColor: null,
67-
68-
// events
69-
beforeCreate: null,
70-
create: null,
71-
start: null,
72-
drag: null,
73-
change: null,
74-
stop: null,
75-
tooltipFormat: null
76-
});
34+
$("#slider").roundSlider({
35+
min: 0,
36+
max: 100,
37+
step: 1,
38+
value: null,
39+
radius: 85,
40+
width: 16,
41+
handleSize: "+0",
42+
startAngle: 0,
43+
endAngle: "+360",
44+
animation: true,
45+
showTooltip: true,
46+
editableTooltip: true,
47+
readOnly: false,
48+
disabled: false,
49+
keyboardAction: true,
50+
mouseScrollAction: false,
51+
sliderType: "default",
52+
circleShape: "full",
53+
handleShape: "round",
54+
lineCap: "butt",
55+
56+
// the 'startValue' property decides at which point the slider should start.
57+
// otherwise, by default the slider starts with min value. this is mainly used
58+
// for min-range slider, where you can customize the min-range start position.
59+
startValue: null,
60+
61+
// SVG related properties
62+
svgMode: false,
63+
borderWidth: 1,
64+
borderColor: null,
65+
pathColor: null,
66+
rangeColor: null,
67+
68+
// events
69+
beforeCreate: null,
70+
create: null,
71+
start: null,
72+
// 'beforeValueChange' will be triggered before 'valueChange', and it can be cancellable
73+
beforeValueChange: null,
74+
drag: null,
75+
change: null,
76+
// 'update' event is the combination of 'drag' and 'change'
77+
update: null,
78+
// 'valueChange' event is similar to 'update' event, in addition it will trigger
79+
// even the value was changed through programmatically also.
80+
valueChange: null,
81+
stop: null,
82+
tooltipFormat: null
83+
});
7784
```
7885

7986
### Some quick links

0 commit comments

Comments
 (0)