forEachItem

an iterator, calls a user-defined handler for each item

void forEachItem(function handler);

Parameters

handlerfunctiona user-defined handler to call, item object will be passed as a param

Example

mySidebar.forEachItem(function(item){
    console.log(item.getId());
});

Back to top