For any specified view you can set a filtering function that will define, which events should be displayed in the scheduler and which shouldn't.
scheduler.filter_week = function(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 (in the 'scheduler.filter_week').
The filter_{viewName} method takes 2 parameters:
Remember, you can set different filtering functions for different views:
scheduler.filter_day = scheduler.filter_week = function(id, event){
//some_code
}
...
scheduler.filter_timeline = function(id, event){
//some_other code
}
Related sample: Filtering events
Back to top