Page 1 of 1

Does Bryntum calendar support multiple workday patterns in a calendar?

Posted: Mon Jul 13, 2020 10:26 am
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


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

Posted: Mon Jul 13, 2020 6:21 pm
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