Skip to content
This repository has been archived by the owner on Jun 19, 2018. 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

@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
Copy link
Owner

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
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 as completed Jul 18, 2016
@mattlewis92
Copy link
Owner

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.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants