PP.Ui.getWidthOfElement

Syntax

PP.Ui.getWidthOfElement(text: String, node: HTMLElement);

Parameters

text. Checked text.

node. HTML Item.

Description

The getWidthOfElement method returns string width occupied by the text in the item in pixels.

Example

The example of use is given in description of the PP.Ui.getPixelSize method.

See also:

PP.Ui