getPixelWidth();
The getPixelWidth method returns width value (in pixels) for tree component.
To execute the example, the page must contain the TreeList component named treeListSett (see Example of Creating the TreeList Component). Get width value of tree component in pixels:
//Get width value of tree component in pixels
console.log("Component width: " + treeListSett.getPixelWidth());
As a result, tree component width is displayed to the console:
Component width: 400
See also: