Page 1 of 1

[ANGULAR] Holidays (non-working days) are not shown in the calendar

Posted: Mon Mar 20, 2023 8:52 am
by shimnx

In my example my non-holidays didn't show up, I loaded the data using loadInlineData(), which is my calendarsData

"calendarsData": [
                {
                  "id": "general",
                  "name": "General",
                  "intervals": [
                    {
                      "startDate": "2022-01-01",
                      "endDate": "2022-01-02",
                      "isWorking": false
                    },
                    ......
                    
] } ]

You can run my example to see, thanks


Re: [ANGULAR] Holidays (non-working days) are not shown in the calendar

Posted: Tue Mar 21, 2023 11:33 am
by johan.isaksson

Hi,

You are displaying dates during 2019 initially, but your non working time ranges are defined starting 2022.
When I change viewed range in your app, the ranges are rendered.

Also might be worth adjusting https://bryntum.com/products/gantt/docs/api/Scheduler/feature/NonWorkingTime#config-maxTimeAxisUnit