DayPilot.Calendar.cornerHtml

The cornerHtml property (string) sets the HTML to be displayed in the upper-left corner of the calendar.

Declaration

DayPilot.Calendar.cornerHtml

Default Value

null

Examples

JavaScript

const calendar = new DayPilot.Calendar("dp", {
  cornerHtml: DayPilot.Date.today().toString("yyyy"),
  // ...
});
calendar.init();

Angular

<daypilot-calendar [config]="config"></daypilot-calendar>
config: DayPilot.CalendarConfig = {
  cornerHtml: DayPilot.Date.today().toString("yyyy"),
  // ...
};

React

<DayPilotCalendar
  cornerHtml={DayPilot.Date.today().toString("yyyy")}
  {/* ... */}
/>

Vue

<DayPilotCalendar
  :cornerHtml="DayPilot.Date.today().toString("yyyy")"
  <!-- ... -->
/>

See Also

Availability

Availability of this API item in DayPilot editions:

LitePro
DayPilot for JavaScript