Page 1 of 1

Date ranges available to create events

Posted: Wed Mar 24, 2021 4:28 pm
by jaimevenegas

Hi everyone,

I want to know if it is possible to declare date ranges where events cannot be created or dragged.

Regards.


Re: Date ranges available to create events

Posted: Wed Mar 24, 2021 5:11 pm
by Animal

This could be done with a validation callback configured into the calendar drag feature.

The documentation has an example (and some formatting errors which I will fix)

https://www.bryntum.com/docs/calendar/#Calendar/feature/CalendarDrag#config-validateCreateFn


Re: Date ranges available to create events

Posted: Wed Mar 24, 2021 6:03 pm
by jaimevenegas

Thanks for the reply.
Another question (maybe I have to do this in another post):

it is possible to add colors to Calendar like on Scheduler using times ranges?
For example:
https://www.bryntum.com/examples/scheduler/resourcetimeranges/


Re: Date ranges available to create events

Posted: Wed Mar 24, 2021 6:24 pm
by mats

This is on our todo list, you can track this feature: https://github.com/bryntum/support/issues/1166


Re: Date ranges available to create events

Posted: Wed Mar 24, 2021 9:03 pm
by jaimevenegas

That would be great.