callEach(collection: Array, methodName: String, params: Object|Number|String|Boolean);
collection. Collection of objects.
methodName. Name of called function.
params. Function parameter.
The callEach method executes specified function for each object in collection.
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: