Slider.ItemValueChanged

Syntax

ItemValueChanged: function(sender, args, timeout);

Parameters

sender. Event source.

args. Event information.

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

Description

The ItemValueChanged event is fired when value of the Slider component slider value stops changing.

Example

To execute the example, the page must contain the Slider component named slider (see Example of Creating the Slider Component). Handle the ItemValueChanged event, get a slider and change its value:

// Handle the ItemValueChanged event
slider.ItemValueChanged.add(function (sender, args, timeout) {
    console.log("The ItemValueChanged event is initialized")
});
// Get a slider
var item = slider.getItemByIndex(0);
// Change the slider value
item.setValue(0.2);

After executing the example the browser console displays the message that the handled event is fired:

The ItemValueChanged event is initialized

See also:

 Slider