search envelope-o feed check
Home Unanswered Active Tags New Question
user comment-o

Update headerHtml in onBeforeCellRender

Asked by Raymond
6 years ago.

I use angularjs and monthly calendar. I try to update the headerHtml in beforeCellRender event.

onBeforeCellRender: function(args) {
if (args.cell.start.getDay() === 1) { // first day of month
args.cell.cssClass = "holiday";
args.cell.headerHtml = "<div>ddd</div>"; // customize the day cell header
}
}

The css got updated, but the header text does not change. In debugger, I saw the function was called and the field headerHtml is updated. However the calendar cell header rendered is not reflected.

This question is more than 3 months old and has been closed. Please create a new question if you have anything to add.