When the calendar is loaded and rendered cellDidMount is called and the cell is rendered green or red this works fine. What I want to do is re-render the cell a different colour when an event is added to the recource lane some time later. How can I call this cellDidMount for a partiular resouce or do somethign else after an event function like select or dateClick is called and a new event is added.
resourceAreaColumns: [
{
headerContent: 'Resource',
field: 'title'
},
{
headerContent: 'Tasks',
field: 'tasks',
width: 50,
headerDidMount: function(arg) {
arg.el.style.textAlign = "center";
},
cellDidMount: function (arg) {
var parentId = arg.resource._resource.parentId;
var tasks = arg.resource._resource.extendedProps.tasks;
if (parentId != "" && tasks == 0)
arg.el.style.backgroundColor = 'red';
else
arg.el.style.backgroundColor = 'green';
arg.el.style.textAlign = "center";
}
}
],