Open chuckn0rris opened 2 months ago
Not a bug. Expected to return something from a headerRenderer to be shown. Nothing returned - nothing shown.
The docs are bad. We should make them true.
I suggest in CalendarPanel.js
:
if (me.headerRenderer) {
cell.innerHTML = '';
const header = me.callback(me.headerRenderer, me, [cell, columnIndex, cellDay]);
if (header) {
if (typeof header === 'string') {
DomHelper.setInnerText(cell, header);
}
else {
DomHelper.createElement({
...header,
parent : cell
});
}
}
else {
DomHelper.setInnerText(cell, me.shortDayNames[cellDay]);
}
Try to specify any renderer, even empty method. See the line is disapeared. According to docs, we do not expect to have any value returned from that method.
Forum post