Our pure JavaScript Scheduler component


Post by a.tschipang »

Hello,

I'm trying to export all the events displayed in the time range.
How can I check if an event is in the set time range? Furthermore, I need information about the stacking, i.e. at which position an event is in the line, is there such a thing as a stacking count?

Regards

Post by pmiklashevich »

Hello,
How can I check if an event is in the set time range?
We have some date helpers. Please see:
https://www.bryntum.com/docs/scheduler/#Common/helper/DateHelper#function-intersectSpans-static
https://www.bryntum.com/docs/scheduler/#Common/helper/DateHelper#function-timeSpanContains-static
Also there is a method to get events in a timespan:
https://www.bryntum.com/docs/scheduler/#Scheduler/data/mixin/EventStoreMixin#function-getEventsInTimeSpan
I need information about the stacking, i.e. at which position an event is in the line, is there such a thing as a stacking count?
It's not supported out of the box. We do not expose order position to the data. To define order a sorter function is applied. Please see HorizontalEventMapper.eventSorter function in lib/Scheduler/view/orientation/HorizontalEventMapper.js file.

Providing user sorter function is broken right now. Ticket here: https://app.assembla.com/spaces/bryntum/tickets/8642-custom-event-sorting-is-not-supported/details

Best,
Pavel

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