forEach()
iterates over the cells of Tabbar
Usage
forEach(callback: (cell: object, index: number, array: object[]) => any): void;
Parameters:
callback: function- a function that Tabbar calls for each cell with the following parameters:cell- the object of a cellindex- the index of a cellarray- an array with the cells
Example
tabbar.forEach((cell, index, array) => {
console.log("This is a cell: ", cell);
console.log("This is a cell index: ", index);
console.log("This is an array of cells: ", array);
});
Related API: getCell()
Related article: Iterating over cells