1

In version 6 of full calendar there is a possibility to inject a content via ng-template. Example is based on eventContent.

<full-calendar [options]="calendarOptions">
  <ng-template #eventContent let-arg>
    <b>{{ arg.event.title }}</b>
  </ng-template>
</full-calendar>

Is it also possible for a header? I couldn't find an information about it. I tried with #header and #headerToolbar but it's not really working.

ADyson
  • 57,178
  • 14
  • 51
  • 63
  • 1
    There is no content injection hook for the header at the moment. https://fullcalendar.io/docs/toolbar shows what you can do to set the content options - it is much more limited, you don't have any real freedom unfortunately. Read https://fullcalendar.io/requesting-features if you want to request such a feature. – ADyson May 05 '23 at 08:49

1 Answers1

0

You can customize all the following parts:

["dayHeaderContent", "dayCellContent", 
"weekNumberContent", "nowIndicatorContent", 
"eventContent", "slotLaneContent", 
"slotLabelContent", "allDayContent", 
"moreLinkContent", "noEventsContent", 
"resourceAreaHeaderContent", "resourceGroupLabelContent", 
"resourceLabelContent", "resourceLaneContent", 
"resourceGroupLaneContent"]

It doesn't seem that the HEADER is a part of it.

Wandrille
  • 6,267
  • 3
  • 20
  • 43