PP.Ui.getWidthOfElement(text: String, node: HTMLElement);
text. Checked text.
node. HTML Item.
The getWidthOfElement method returns string width occupied by the text in the item in pixels.
The example of use is given in description of the PP.Ui.getPixelSize method.
See also: