I have a scheduler in a vertical mode and using a custom time axis. The customization is shown in the code below, for DAY units, the ticks are not going to be full 24-hour blocks, but 8-hour blocks to simulate the workday.
timeAxis = {
continuous : false,
generateTicks(start, end, unit, increment) {
const ticks = [];
while (start < end) {
if (unit !== 'hour' || start.getHours() >= 8 && start.getHours() <= 16) {
ticks.push({
id : ticks.length + 1,
startDate : start,
endDate : DateHelper.add(start, increment, unit)
});
}
start = DateHelper.add(start, increment, unit);
}
return ticks;
}
};
The problem is that when I set the event drag constrainDragToResource true is not working
eventDrag: {
constrainDragToResource: true }
},
i was able to reproduce this in your example link : https://www.bryntum.com/examples/scheduler/timeaxis/
and all that i have changes is :
features : {
sort : 'name',
eventResize :false,
eventDrag:{
constrainDragToResource: true }
},
mode: 'vertical',
Thank you in advance