Does Bryntum calendar support multiple workday patterns in a calendar?

Support for v6.x of our Scheduling components


Post Reply
User avatar
Vineela
Premium Member
Premium Member
Posts: 90
Joined: Fri Dec 21, 2018 9:21 am

Does Bryntum calendar support multiple workday patterns in a calendar?

Post by Vineela »

Hi,

We have a requirement to support multiple workday patterns in a project. For example, projects will be working for 9 hours/day through out the year except for Ramadan season (one month in a year) when the projects will be working for 6hours per day. Is there a way to meet this requirement except through creating exceptions for the month in every project?

Thanks
Vineela


User avatar
pmiklashevich
Core Developer
Core Developer
Posts: 3112
Joined: Fri Apr 01, 2016 11:08 am

Re: Does Bryntum calendar support multiple workday patterns in a calendar?

Post by pmiklashevich »

Hello Vineela,

Yes, you need to configure day exceptions, but instead of hardcoding every single day you can override just 5 work days (Mon - Fri)
https://www.bryntum.com/docs/gantt-for-extjs/#!/api/Sch.model.CalendarDay

Please use WEEKDAYOVERRIDE for the type, OverrideStartDate and OverrideEndDate to specify Start and End dates of Ramadan month and Availability for that day between the interval.

Please check out this guide: https://www.bryntum.com/docs/gantt-for-extjs/#!/guide/gantt_calendars

Individual days

  • "Day override". Represents a certain date in the calendar, for example 2013/01/10. This type of day has the highest priority.

  • "Week day override" sometimes called "week override" or "non-standard week". Represents a week day within a certain time span, for example all Mondays between 2013/01/10 and 2013/02/10 (inclusive). This type has the next highest level of priority.

  • "Week day". Represents a certain week day in the calendar, for example - all Mondays. It has the lowest priority among all the "special" days, but still overrides the value of defaultAvailability config option for that day.

Best,
Pavel

Pavel Miklashevich - Core Developer

Post Reply