vkurko / calendar

Full-sized drag & drop JavaScript event calendar with resource & timeline views

Home Page:https://vkurko.github.io/calendar/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Can't add html in dayHeaderFormat?

cipriano200 opened this issue · comments

Cant add html inside dayHeaderFormat function

dayHeaderFormat: function(date) {
  return '<div class="wpfs-calendar-week-day-cell">Some text</div>';
}

In v2.0.0 it is now possible to return HTML like this:

dayHeaderFormat: function(date) {
  return {html: '<div class="wpfs-calendar-week-day-cell">Some text</div>'};
}

Thank you for your answer.

One more question if you dont mind:
Is it possible to add html after header toolbar?

The titleFormat in v2.0.0 also supports passing html from a function. There are no other options yet. In the future, the setting for Custom buttons will most likely suit you.

I hope I can close this issue.

Thank you for the release