logo

FullCalendar

columnHeaderHtml 3.8.0

Programmatically generates HTML that will be injected on the calendar’s column headings.

function( moment ) -> string

This function will receive a moment object that represents a single column’s date and must return an HTML string to be injected.

Example:

$('#calendar').fullCalendar({
  columnHeaderHtml: function(mom) {
    if (mom.weekday() === 5) {
      return '<b>Friday!</b>';
    } else {
      return '<i>' + mom.format('LLL') + '</i>';
    }
  }
});