ListCaptions.add

Syntax

add(caption);

Parameters

caption. PP.Ui.Caption | Object. Title.

Description

The add method adds a new title to the end.

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();
// Reduce width of current titles
caps.getCaptions()[0].setWidth(100);
caps.getCaptions()[1].setWidth(100);
//Add a new title
caps.add({Content: "Third", MinWidth: "40", Width: "100"})

After executing the example a new title is added.

See also:

ListCaptions