Show contents 

Working with Trees > Classes > TreeList > TreeList.getPixelWidth

TreeList.getPixelWidth

Syntax

getPixelWidth();

Description

The getPixelWidth method returns width value (in pixels) for tree component.

Example

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:

TreeList