ListCaptions.ScrollLeft

Syntax

ScrollLeft: Number;

Description

The ScrollLeft property determines displaying of titles at the specified value of horizontal scrollbar.

Comments

Property value affects only title position, scrollbar is not changed.

Use JSON or the setScrollLeft method to set the property value and the getScrollLeft method to get the property value.

Example

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

// Get tree titles
caps = Tree.getCaptions();
// Display scrollbar by stretching title
caps.getCaptions()[0].setWidth(150);
caps.getCaptions()[1].setWidth(500);
// Change title position
caps.setScrollLeft(100);

After executing the example the title is displayed that corresponds to scrollbar scrolling to the 100 value.

See also:

ListCaptions