calculates the text size in an HTML node and returns the result
text | string|array | the text of the HTML node |
css | string | the css style applied to the text |
object | an object with the text width and height |
var text_size = webix.html.getTextSize("text", "css");
You can pass an array of strings as the first parameter. In this case the method will return an object with the maximal width and height values.
Back to top