Skip to content
This repository has been archived by the owner. It is now read-only.

Feature request: ability to click multiple dates and create an event that spans clicked dates #391

Closed
demus opened this Issue Jul 14, 2016 · 3 comments

Comments

Projects
None yet
2 participants
@demus
Copy link

demus commented Jul 14, 2016

I'm not sure where to start to implement this myself, basically I need the functionality to create a several week long event that does not include weekends. Do you have any suggestions on how to accomplish this, either through a pull request or otherwise?

@mattlewis92

This comment has been minimized.

Copy link
Owner

mattlewis92 commented Jul 15, 2016

There's already support for doing this on the day view, it would be pretty simple to adapt it for the month view as well: https://mattlewis92.github.io/angular-bootstrap-calendar/#?example=select-range

For excluding weekends something like a date-range-select-validate input option could be added, whereby you pass a function which is passed a start and end date to indicate the current month cell that is moused over, and return true / false to indicate whether it can be selected.

@demus

This comment has been minimized.

Copy link
Author

demus commented Jul 18, 2016

Thanks for the pointers. I hacked around the weekend problem by creating an array of single day events from the original event and associating them with a single event model in my backend. So I'm closing this for now but might revisit this in the future to implement the ability to click multiple dates (unless this is something you were going to do).

@demus demus closed this Jul 18, 2016

@mattlewis92

This comment has been minimized.

Copy link
Owner

mattlewis92 commented Jul 18, 2016

Glad you got it sorted, I'll re-open the issue as someone else requested it as well 😄

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
You can’t perform that action at this time.