Example of Creating the ColorCombo Component

Add libks to the following files in the HEAD tag to execute the example:

Add the following script to create the ColorCombo component in the SCRIPT tag:

var colCombo = new PP.Ui.ColorCombo({
    Id: "ColorCombo1",
    ParentNode: document.getElementById('example'),
    // Current color
    Color: new PP.Color("#FF0000"),
    // Component display mode (spectrum)
    Mode: 1
});

Add the DIV item with the Example identifier to the BODY tag.

After executing the example the HTML page contains the ColorCombo component looking as follows:

See also:

ColorCombo