Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Is there any way to Dynamically set overlapEventsSeparate per event? #203

Open
AnderssonPeter opened this issue Mar 2, 2017 · 0 comments

Comments

@AnderssonPeter
Copy link

Is there any way to Dynamically set overlapEventsSeparate based on two events that are overlapping?

For example with the following data it would be nice if 'Gym' would have overlapEventsSeparate: false, while the rest where true.

  var eventData = {
    events : [
       {'id':1, 'start': new Date(year, month, day, 08), 'end': new Date(year, month, day, 20),'title':'Gym'},
       {'id':2, 'start': new Date(year, month, day, 09), 'end': new Date(year, month, day, 09, 45),'title':'Gymnastics'},
       {'id':3, 'start': new Date(year, month, day, 10), 'end': new Date(year, month, day, 11),'title':'Spinning'},
       {'id':4, 'start': new Date(year, month, day, 11, 15), 'end': new Date(year, month, day, 12),'title':'Indoor Walking'},
       {'id':5, 'start': new Date(year, month, day, 11, 45), 'end': new Date(year, month, day, 12, 15),'title':'Kettlebells'}
    ]
  };

So some sort of function like seperateEvents: function (event1, event2) { /* logic here */ } and default logic could be to just return the value of overlapEventsSeparate.

The result could look something like
schedule

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant