I want to change the color of event when it is selected (clicked by mouse): Already tried 2 things:
-
scheduler.templates.event_class = function (start, end, event) { var css = ""; if (event.id == scheduler.getState().select_id) { css += " selected"; } return css; };
-
scheduler.for_rendered(id, updateCSS);
function updateCSS(event) {
event.style.color = ‘white’;
event.style.backgroundColor = ‘#444d58’;
}
Both are working only in Month View. I also want to do same in Unit View and Week View.