| Issue 2475: | eventConstraint and selectConstraint as functions | |
| 2 people starred this issue and may be notified of changes. | Back to list |
Currently, eventConstraint and selectConstraint can only be set with
an event ID, "businessHours", object
as per the [http://fullcalendar.io/docs/event_ui/eventConstraint/ Docs].
It would be nice to be able to specify a function in the same way many other options work.
Example usage might look like
{{{
eventConstraint: function(start,end,fcevent){
if( start.isBefore(moment()) ){ // if the start is in the past
return false;
}else{
return true;
}
}
}}}
Jun 16, 2015
Issue 2519 has been merged into this issue.
Aug 21, 2015
Discussion for this issue has moved to the following URL: https://github.com/fullcalendar/fullcalendar/issues/2740 This is because Google Code is shutting down. Apologies if you are being pestered with these notifications. This is a one-time event. Happy coding, Adam
Status:
ExportedToGithub
|
|
| ► Sign in to add a comment |
Labels: Type-Feature