ColorCombo.ColorChange

Syntax

ColorChange: function (sender,args)

Parameters

sender. Event source.

args. Event information.

Description

The ColorChange event happens on changing the color after closing the drop-down  list.

Example

To execute the example, create the ColorCombo component named ColCombo (see Example of Creating the ColorCombo Component). Add the ColorChange event handler:

    ColCombo.ColorChange.add(function (sender, args) {
        var col = ColCombo.getColor();
        console.log(
            "Transparency: " + col.getA(),
            "; Blue: " + col.getB(),
            "; Red: " + col.getR(),
            "; Green: " + col.getG(),
            "; Brightness: " + col.getV(),
            "; Tone : " + col.getH(),
            "; Saturation : " + col.getS()
            )
    });

After executing the example, on new color selection the JavaScript console of the browser displays the message with current color characteristics property.

See also:

ColorCombo