Label Constructor

Syntax

PP.Ui.Label (settings)

Parameters

settings. JSON object that contains values of component properties.

Description

The Label constructor creates an instance of the Label component.

Example

To execute the example, in the HEAD tag add links to the PP.js library and PP.css visual styles. To place the component, add a DIV item with the "label" identifier to the page. In the SCRIPT tag add component creation code:

        var labelSettings = {
            Content: "New label",
            ParentNode: document.getElementById("label"),
            Width: 100,
            Height: 50
        };
        var label = new PP.Ui.Label(labelSettings);

After executing the example a label is placed in the page:

New label

See also:

Label