Our state of the art Gantt chart


Post by daniel.piret »

Hello Support,

We need to assign multiple working hours to a single resource, i.e. For a period of time users' working hours are 8 for each weekday and for another period of time the working hours are 6.

To support this behaviour, we have created a JSON

working.json
(3.04 KiB) Downloaded 37 times

but in practice, we have a long period of time. So, we want to create a JSON like ,

desired.json
(2.13 KiB) Downloaded 38 times

. So, something like we can use recurrentStartDate and startDate in the same interval item.

Does Bryntum support this kind of behaviour? Is there any other way by which we can achieve this with minimal JSON data in intervals as a project can extend more than a year too?

Thanks.


Post by alex.l »

You can specify intervals like this

            "recurrentStartDate" : "every weekday at 6:00 after 2021-03-30T00:00:00 before 2021-04-15T00:00:00",
            "recurrentEndDate"   : "every weekday at 22:00 after 2021-03-30T00:00:00 before 2021-04-15T00:00:00",

Full information in Later.js docs https://bunkat.github.io/later/parsers.html#text

All the best,
Alex


Post Reply