Is it possible to conditionally display an active area? If a DB field is not NULL then display the active area. If the DB field is NULL then hide the active area? If this is possible could you show me a code example?
Thank you.
Yes, this is possible. You can add active areas using onBeforeEventRender where you can check if a specific property exists in the source data object (args.data):
onBeforeEventRender: args => { if (args.data.myField) { args.data.areas = [ // ... ]; } }
See also: https://doc.daypilot.org/scheduler/event-customization/
Thank you very much Dan