FontComboBox Constructor

Syntax

PP.Ui.FontComboBox (settings);

Parameters

settings. The JSON object with the values of the component properties.

Description

The FontComboBox constructor creates an instance of the FontComboBox component.

Example

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:

FontComboBox