Page 1 of 1

[ANGULAR] how can i add national holiday into calendar?

Posted: Fri May 13, 2022 1:56 pm
by lanpeng

Hi bryntum team,
I want to add national holidays to my calendar . How can i do ?


Re: [ANGULAR] how can i add national holiday into calendar?

Posted: Mon May 16, 2022 8:56 am
by tasnim

Unfortunately, there is no automatic way to do this. If you have a list of national holidays you can use that and create calendar events to use them on your app and That's it.

Best regards,
Tasnim


Re: [ANGULAR] how can i add national holiday into calendar?

Posted: Wed May 25, 2022 8:40 am
by lanpeng

Hi ,bryntum team
I want to implement similar features in calendar . But Calendar has no property "calendarsData" .Is there another solution?

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

Re: [ANGULAR] how can i add national holiday into calendar?

Posted: Wed May 25, 2022 9:14 am
by alex.l

Hi lanpeng,

You are right, Calendar's projectModel doesn't support calendars. Calendar works like Scheduler, this means it doesn't schedules data, it only displays data. So it's not possible to setup non working intervals in Calendar.

TimeRanges are not supported in Calendar yet, we have a feature request to add that here: https://github.com/bryntum/support/issues/843 and here https://github.com/bryntum/support/issues/2389

So, the only possible way now is to display holidays as full day events.


Re: [ANGULAR] how can i add national holiday into calendar?

Posted: Wed Jun 08, 2022 7:38 am
by lanpeng

Hi bryntum team
Will the new features be released in the next release?
I would like to ask you how weekend add into calendar?


Re: [ANGULAR] how can i add national holiday into calendar?

Posted: Thu Jun 09, 2022 11:12 am
by tasnim

Unfortunately, we can't say anything about that. But, as it has a 5.0.X milestone, it might be out in our next minor release.