Slider.ItemValueChanging

Syntax

ItemValueChanging: function(sender, args, timeout);

Parameters

sender. Event source.

args. Event information.

timeout. Time delay (milliseconds) after which the event is fired.

Description

The ItemValueChanging event is fired on changing value of the Slider component's slider.

Example

To execute the example, the page must contain the Slider component named slider (see Example of creating the Slider component ). Handle and fire the ItemValueChanging event:

// Handle the ItemValueChanging event
slider.ItemValueChanging.add(function (sender, args, timeout) {
    console.log("The ItemValueChanging event is initialized")
});
// Call handled event with a delay equal to 500 milliseconds
slider.ItemValueChanging.fire(this, [], 500);

After executing the example the browser console informs that the handled event has fired:

The ItemValueChanging event is initialized

See also:

 Slider