Our pure JavaScript Scheduler component


Post by valereimann »

Hello,

I wanted the Milestones to always be above of the Events, so i used the

overlappingEventSorter
overlappingEventSorter(a, b) {
      return !a.isMilestone && b.isMilestone ? 1 : -1;
  }
  

When I'm using it, the Milestones are behind the Events, not in a own row above the Event.

I attached Screenshot with before and after applying the Sorter.
The Events have no, further Sorting applied.

This is the eventRenderer (I don't know If this is relevant)

eventRenderer({eventRecord}) {
    let result = '';
    //@ts-ignore
    if (eventRecord.isMilestone) {
      result += `<i class="fa fa-arrow-down milestone" style="font-size: xx-large"></i>`;
    } else {
      result = eventRecord.name;
    }

return result;
  },
Attachments
Before Sorter.png
Before Sorter.png (10.21 KiB) Viewed 84 times
AfterSorter.png
AfterSorter.png (13.56 KiB) Viewed 84 times

Post by ghulam.ghous »

Hi @valereimann,

This looks like a bug. I have opened a ticket here https://github.com/bryntum/support/issues/8784 to investigate and fix this issue. You can subscribe to it to keep track of updates.

Regards,
Ghous


Post Reply