Events Filtration

For any specified view you can set filtration function that will define which events should be displayed and which should not be. The function is called for each view.

scheduler.filter_week = function(ev_id, event){
if(event.name == 'New event')
    return false; // event will be filtered (not rendered)
    //or
    return true; // event will be rendered
}

Where, 'week' is the name of a view.

You can set either an individual function for each view or the same one for all views:

scheduler.filter_day = scheduler.filter_week = scheduler.filter_month = scheduler.filter_timeline = function(ev_id, event){
...
}