We are having scheduler pro version using with angular. I have a requirement that I want periods of time to be blocked
for exampl
period 1: 01.01.2025 - 31.03.2025 --> blocked (disabled)
period 2: 01.04.2025 - 30.04.2025 --> visible und functional
period 3: 01.05.2025 - 31.12.2025 --> blocked (disabled)
How I can achieve this? can you provide a code example in angular?
Thanks for your help, that's working. One last question: is it possible to visually highlight this non working time blocks. like colorize them and name label them?
Thats how I integrate the blocked periods. is there a property for in the intervals, to label or style it?
project: {
// use our store for time ranges (crudManager will load it automatically among other project stores)
timeRangeStore: shiftTimeRangeStore,
// calendar: 'holidays'
calendar: 'closedperiods',
calendars : [
// Calendar definition
{
id : 'closedperiods',
name : 'closedperiods',
intervals : [
{
startDate : moment().startOf('year').toDate(),
endDate : moment().startOf('week').toDate(),
isWorking : false
}
]
}
]
},
After applying cls in the data, you will also need to define the styles you wana use let's say color in the css. Check out the css of the this example: https://bryntum.com/products/schedulerpro/examples/non-working-time/, it has applying custom styling for the factory shutdown non-working time. This was the data for the factoryShutdown: