Hi all,
I'm playing with event versions and would like to display two versions above each event. The attached screenshot shows where I am now and I'd like both versions shown at the height of the green line. The version on the right is mostly obscured by the green line. The green line I have added graphically just to show the level I'd like both versions to be displayed at.
I also want to change the color of each version according to underlying data. I know the underlying (custom) data is available as part of the event object. The code I have so far is:
// start event versions
eventVersionsEnabled: true,
eventVersionHeight: 15,
eventVersionMargin: 5,
onBeforeEventRender: function(args) {
console.log("args", args);
args.data.versions = [
{
start: args.data.start,
end: args.data.start.addMinutes(5),
barHidden: true
},
{
start: args.data.end.addMinutes(-5),
end: args.data.end,
barHidden: true
}
];
},
// end event versions
Any ideas or alternative approaches would be great!