Our powerful JS Calendar component


Post by lanpeng »

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


Post 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


Post 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
                    }
                ],
            }
        ],

Post 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.

All the best,
Alex


Post 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?


Post 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.


Post Reply