getCaptionIndex(caption): Number;
caption. PP.Ui.Caption. Title.
The getCaptionIndex method returns title 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 title cap = caps.getCaptions()[1]; // Get title index caps.getCaptionIndex(cap);
After executing the example title index is obtained.
See also: