Our powerful JS Calendar component


Post by jaimevenegas »

Hi everyone,

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

Regards.

Attachments
Available days.png
Available days.png (25.32 KiB) Viewed 963 times

Post 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


Post 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/

Attachments
add colors.png
add colors.png (74.33 KiB) Viewed 955 times

Post by mats »

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


Post by jaimevenegas »

That would be great.


Post Reply