Skip to content

Commit

Permalink
onSlideEnd callback
Browse files Browse the repository at this point in the history
  • Loading branch information
princejwesley committed May 8, 2015
1 parent 785c957 commit 4da0e22
Show file tree
Hide file tree
Showing 6 changed files with 23 additions and 4 deletions.
10 changes: 10 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -119,6 +119,15 @@ ui - dom element
value - Current sliding value
```

### function onSlideEnd(ui, value)
> `onSlideEnd` callback is triggered when the user action is done (on mouse up/touch end or click).
Parameters:
```
ui - dom element
value - Current sliding value
```

### function formLabel(value, prefix, suffix)
> `formLabel` callback is triggered with current sliding value, prefix and suffix.
If it is defined, it will be used as a source for inner circle area.
Expand Down Expand Up @@ -149,6 +158,7 @@ var slider = $('#slider').CircularSlider({
animateDuration : 360,
selectable: false,
slide: function(ui, value) {},
onSlideEnd: function(ui, value) {},
formLabel: undefined
});
```
Expand Down
2 changes: 1 addition & 1 deletion bower.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "circular-slider",
"version": "1.0.6",
"version": "1.0.7",
"homepage": "https://github.com/princejwesley/circular-slider",
"authors": [
"princejwesley <[email protected]>"
Expand Down
2 changes: 1 addition & 1 deletion circular-slider.jquery.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name" : "circular-slider",
"version": "1.0.4",
"version": "1.0.7",
"title": "A circular slider",
"description" : "Circular slider for range values and image carousel. It supports half/full circles",
"author": {
Expand Down
Loading

0 comments on commit 4da0e22

Please sign in to comment.