Skip to content
This repository has been archived by the owner on Dec 26, 2023. It is now read-only.

onChange

Karl edited this page Apr 11, 2018 · 3 revisions

Type: Function

Default undefined

Define a callback to be called on value change.

The callback has one argument which is the current value(s) of the input. The callback fires whenever the value changes, including during mousemove/touchmove.

const rangeable = new Rangeable(input, {
    onChange: function(value) {
        // do something on value change
    }
});
Clone this wiki locally