Our pure JavaScript Scheduler component


Post by mexahuk »

Hello. I'm trying to override event sorter based on documented api https://www.bryntum.com/docs/scheduler/#Scheduler/view/Scheduler#config-horizontalEventSorterFn.
But nothing happens... It just ignore this function.

My part of config:
appendTo: this.element.nativeElement.firstElementChild,
useInitialAnimation: 'slide-from-left',
horizontalEventSorterFn: (a: EventModel, b: EventModel): number => {
	window.console.debug('check...');
	...
}
Bryntum Scheduler 2.0.3

Post by pmiklashevich »

Pavlo Miklashevych
Sr. Frontend Developer


Post by pmiklashevich »

Since there is no public way to apply custom sorting, you can override HorizontalEventMapper.eventSorter function which is used for event sorting now.

Pavlo Miklashevych
Sr. Frontend Developer


Post by mexahuk »

Thanks for the reply! Are you talking about Scheduler 2.0.3 or Scheduler for Ext JS? I can't find the HorizontalEventMapper class at the scheduler.module... Or this class is only available in source code?

Post by pmiklashevich »

I'm talking about new Scheduler (with no extjs). HorizontalEventMapper is private, but you can find it in the source code. As a part of #8642 we will create a public config.

Pavlo Miklashevych
Sr. Frontend Developer


Post by johan.isaksson »

Hi,

The ticket linked to above has been resolved. In the next release `horizontalEventSorterFn` should work as advertised in docs.
Best regards,
Johan Isaksson

Post Reply