PP.callEach

Syntax

callEach(collection: Array, methodName: String, params: Object|Number|String|Boolean);

Parameters

collection. Collection of objects.

methodName. Name of called function.

params. Function parameter.

Description

The callEach method executes specified function for each object in collection.

Example

To execute the example, the HTML page must contain the navigation panel with two tabs (see example in the page AnimationSettings Constructor). Change height for all tabs in the panel:

// Get collection of tabs
var items = bar.getItems();
// Set new height for navigation bar tabs
PP.callEach(items, "setStyle", "height: 50px;");

After executing the example the height equal to 50 pixels is set for all tabs of the navigation panel:

See also:

PP