PP.Ui.Label (settings)
settings. JSON object that contains values of component properties.
The Label constructor creates an instance of the Label component.
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: