ListCaptions.remove

Syntax

remove(item);

Parameters

item. PP.Ui.ListCaption | Number. Title or index.

Description

The remove method removes the specified title.

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();
// Remove second title
caps.remove(1);

After executing the example the second title is removed.

See also:

ListCaptions