Add libks to the following files in the HEAD tag to execute the example:
The PP.js basic components library.
The PP.css visual styles.
The module with the resources.ru.js (Russian resources) of the resources.en.js (English resources).
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: