Hi,
I'm using Scheduler Pro and trying to couple nested events with fixed sub-event tasks durations. When user moves the entire nested event over a non-working day, it should expand so that days off are filled with the dashed grey color (like in the demo).
This demo shows the nested event rendering but is doesn't show expansion over non working days
https://www.bryntum.com/examples/scheduler-pro/nested-events/
This one illustrates the expansion mechanism but it uses regular events (and not nested ones)
https://www.bryntum.com/examples/scheduler-pro/weekends/
Starting from this last demo with following custom calendar:
"project" : {
"calendar" : "off"
},
"calendars" : {
"rows" : [
{
"id" : "off",
"name" : "non working",
"intervals" : [
{
"recurrentStartDate" : "on Sat at 0:00",
"recurrentEndDate" : "on Mon at 0:00",
"isWorking" : false
},
{
"startDate" : "2020-12-25",
"endDate" : "2020-12-26",
"isWorking" : false
}
]
}
]
},
I added some data that comply with the nested format
"events" : {
"rows" : [
{
"id" : 2,
"resourceId" : 1,
"startDate" : "2020-12-01",
"duration" : 3,
"name" : "COGESTEN",
"eventColor" : "purple",
"resizable" : false,
"agenda" : [
{
"name" : "F",
"startDate" : "2020-12-01",
"duration" : 2
},
{
"name" : "L",
"startDate" : "2020-12-03",
"duration" : 1
}
]
}
]
},
"resourceTimeRanges" : {
"rows" : [
{
"id" : 1,
"resourceId" : 3,
"name" : "Unavailable",
"startDate" : "2020-11-29",
"endDate" : "2021-01-03",
"timeRangeColor" : "red"
}
]
}
}
I copied / pasted pieces of code from the nested demo in the events it should be.
I load the .json file with load function
project.load();
No error in console but the sub-events texts are rendered all in the same cell
Should I start with the nested demo first instead ?
Is this at all possible ?