Reputation: 43
I think I've found an issue regarding resource changes while having two event sources (my own API & Google Calendar's).
For the latest, I'm using the component in Resource timeline View, setting a callback property to change CSS for the column dates of received events.
eventDataTransform: function(event) {
$('td [data-date="' + event.start + '"]').css('background-color', '#e7e7e7');
$('th [data-date="' + event.start + '"]').css('background-color', '#e7e7e7');
//event.resourceId = 2089; DISABLED. Don't want a resource box for these events.
return event;
}
Since Resource Timeline view is designed to display events over resources, I made this change using eventDataTransform within Google Calendar source.
From that time on, changing event resource stopped working.
Any thoughts will be appreciated.
Upvotes: 0
Views: 325
Reputation: 43
Found the problem while trying to make a reproducible example.
I was setting eventOverlap to FALSE. That won't allow me to drop events where others were placed (background events).
Thanks for your help @ADayson!
Upvotes: 1