angular-rangeslider icon indicating copy to clipboard operation
angular-rangeslider copied to clipboard

Handle up/down events not working

Open spapas opened this issue 10 years ago • 2 comments

I'm using the following slider definition

<div range-slider
                    step='6'
                    onHandleUp='handleUp'
                    onHandleDown='handleDown'
                    min="sliderAge.min"
                    max="sliderAge.max"
                    model-max="sliderAge.maxModel"
                    model-min="sliderAge.minModel"

                    ></div>

while in my controller, I've got the following two functions:

    $scope.handleUp = function() {
        console.log("Handle up");
    }
    $scope.handleDown = function() {
        console.log("Handle down");
    }

Unfortuanately I can't see "Handle up" nor "Handle down". Could anybody elaborate ? Also, the documentation needs to be updated to reflect the onHandleUp/down usage (i'm not sure if I am using it right!)

spapas avatar Mar 29 '15 21:03 spapas

were you able to solve this issue?

You need to change your div:

tharrington avatar Apr 12 '15 15:04 tharrington

@tharrington thanks for the help, it works when I change it as you propose.

Please put this in the documentation/README to help other people - getting notifications when the slider is updated is really mandatory (or else you'll need to use dreadfull watch statements :-1: )

spapas avatar Apr 13 '15 16:04 spapas