DiviArea.Data.loopVisibleAreas(filter, callback, reversed)
Loop all visible Areas of the given type and execute the callback for them.
Params
filter
- The area type, e.g.
popup
,inline
,flyin
,hover
.
Default: all callback
- The callback function to execute.
reversed
- Whether to loop Areas in reverse order.
Returns
The function does not return anything.
Examples
// Display a list of all visible Areas in the JS console.
DiviArea.Data.loopVisibleAreas('all', function(area) {
console.log('Visible Area found:', area.theId());
});
Notes
No notes