Can't add html in dayHeaderFormat?
cipriano200 opened this issue · 5 comments
cipriano200 commented
Cant add html inside dayHeaderFormat function
dayHeaderFormat: function(date) {
return '<div class="wpfs-calendar-week-day-cell">Some text</div>';
}
vkurko commented
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>'};
}
cipriano200 commented
Thank you for your answer.
One more question if you dont mind:
Is it possible to add html after header toolbar?
vkurko commented
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.
vkurko commented
I hope I can close this issue.
cipriano200 commented
Thank you for the release