ListCaption.updateWidth

Syntax

updateWidth(value);

Parameters

value. Number. Width in pixels.

Description

The updateWidth method sets title width.

Comments

The method does not generate events and does not consider the ListCaption.Reduction property.

Example

Executing the example requires the SimpleTreeList component with the Tree identifier (see Example of Creating the SimpleTreeList Component).

// Get title
caps = Tree.getCaptions();
cap = caps.getCaptions()[0];
// Set width
cap.updateWidth(50);

After executing the example title width is set.

See also:

ListCaption