PP.Ui.FontComboBox (settings);
settings. The JSON object with the values of the component properties.
The FontComboBox constructor creates an instance of the FontComboBox component.
To execute the example, connect links to PP.js components library and PP.css visual styles table in the HEAD tag of the HTML page. Requires the DIV item with the fontCB identifier on the page. Seebelow the Javascript code required to create the FontComboBox component:
<script type="text/javascript">
var fontCombo = new PP.Ui.FontComboBox({
ParentNode: document.getElementById("fontCB"),
Width: 200 });
</script>
After executing the example the HTML page will contain the FontComboBox component that looks as follows:
See also: