Our powerful JS Calendar component


Post by orthobridge »

Hi,

I've got a Calendar resource view and want to show all resources, but on some days or time periods, for some resources, want to disable any events being booked. what's the best way to do this and show it visually ideally (hatched/grey/other ...).

As you will see in the attached image, the greyed out resources can't be booked on that day so what I really need is to get a handle on the resource in the listener - but don't know how !!


listeners: {
                beforeEventEdit({ eventRecord }) 
                
// check something .. ?

Ideally I'd also be able to grey out the background on those cells.

Thanks in advance.

Attachments
Capture.PNG
Capture.PNG (98.94 KiB) Viewed 525 times

Post by Animal »

The TimeRanges feature will highlight "background" events. It will be released soon.

To get the resource? An event always knows what resource(s) it is assigned to:

Screenshot 2022-12-01 at 20.43.09.png
Screenshot 2022-12-01 at 20.43.09.png (261.49 KiB) Viewed 519 times

Post by orthobridge »

Works perfectly. Thanks again.

Where do I send the wine at Christmas ?


Post Reply