getTextSize

changes the text size in an HTML node and returns the result

object getTextSize(string text,string css);

Parameters

textstringthe text of the HTML node
cssstringthe css style applied to the text

Returns

objectan object with the text width and height

Example

var text_size = webix.html.getTextSize("text", "css");

Back to top