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

add setting to allow / prevent overlapping slots #46

Closed
3plusalpha opened this issue Feb 20, 2016 · 5 comments
Closed

add setting to allow / prevent overlapping slots #46

3plusalpha opened this issue Feb 20, 2016 · 5 comments

Comments

@3plusalpha
Copy link

In some cases it should be prevented to create overlapping slots.
I would propose a property e.g. overlapping={false}, which defaults to true.

I implemented an overlapping check into an own calendar and disabled the slot creation for areas where a slot / event already existed.

@Joramt
Copy link

Joramt commented Mar 14, 2016

Big calendar purpose is to display events on a calendar graphic support. Therefore it makes sense for the events to overlap, as one person might be attending various numerous of events in a single day. This isn't an issue, but simply a request that you'd like big calendar to have to suit your needs.

@3plusalpha
Copy link
Author

Yes, it's a feature request. In my case I want to let users define dates / slots that do not overlap. For example teacher can only teach one class at once.

@jquense
Copy link
Owner

jquense commented Mar 14, 2016

Generally I think the best way to handle this is to enforce the event overlapping constraints outside of the calendar using the callbacks. I thnk the only things thats missing to allow this usecase is the ability to prevent the actual drag and select to create a an event. theonSelectStart callback already exists it probably makes sense to allow preventDefault in those cases.

@3plusalpha
Copy link
Author

Callbacks would be a nice generic solution. I would propose to add these two events: onSelect and onSelectEnd.

@3plusalpha
Copy link
Author

Thanks! :)

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

3 participants