getItem(index);
index. Number. Index.
The getItem method returns title by its index.
Executing the example requires the SimpleTreeList component with the Tree identifier (see Example of Creating the SimpleTreeList Component).
// Get tree titles caps = Tree.getCaptions(); // Get first title caps.getItem(0); // -> PP.Ui.ListCaption {_Content: "First", _Reduction: 0, _MinWidth: 20, _Percent: 40, _Resizable: true…}
After executing the example the first title is obtained.
See also: