Hello everyone,
I recently came across an issue in SchedulerPro's vertical mode regarding the eventLayout function and created a bugticket: https://github.com/bryntum/support/issues/8879
Beside the missing Scheduler reference the layoutFn is currently overwriting the behavior of all events.
new SchedulerPro({
mode: 'vertical',
eventLayout : {
type: 'stack', // default fallback layout type
layoutFn(items) {
console.log(this.scheduler) // should log the scheduler reference
if(item.someCondition) {
item.width = this.scheduler.rowWidth
// Information in the Bryntum documentation on how to recreate the expected behavior of the layout types "stack, mixed, pack, none" with a custom layoutFn would be very helpful.
} else{
// item should be treated as "type: stack"
}
}
}
})
The layoutFn function in this example should only affect items with matching conditions, while other items should be displayed using the default behavior of the specified eventLayout type.
The referenced bug ticket 8879 has been added to milestone 5.6.9 and it also mentioned the described behavior of the layoutFn in combination with a default fallback layout type.
Will this described functionality also be incorporated into the upcoming version?
Information in the Bryntum documentation on how to recreate the expected behavior of the layout types "stack, mixed, pack, none" with a custom layoutFn would be also very helpful.
I am looking forward to hearing from the community or the development team.
Best regards,
Malick