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;
},