My favorites | Sign in
Project Home Issues
New issue   Search
for
  Advanced search   Search tips   Subscriptions
Issue 2475: eventConstraint and selectConstraint as functions
2 people starred this issue and may be notified of changes. Back to list
Status:  ExportedToGithub
Owner:  ----
Closed:  Aug 2015


Sign in to add a comment
 
Reported by dmacdon...@bibliofiche.com, Mar 30, 2015
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;
        }
    }
    }}}
Apr 19, 2015
Project Member #1 adamrs...@gmail.com
(No comment was entered for this change.)
Status: Accepted
Labels: Type-Feature
Jun 16, 2015
Project Member #2 adamrs...@gmail.com
 Issue 2519  has been merged into this issue.
Aug 21, 2015
Project Member #3 adamrs...@gmail.com
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

Powered by Google Project Hosting