Adding a button to the calendar popup

Hello,

We would like to add a button to the calendar popup which has our custom logic onclick. Can you tell us where we would add this code?

Thanks,
Mark

Hi,

there isn’t a public solution. You may add the button by DOM.

winHeader is html container with calendar header. Therefore, if calendar header is enabled, you may try to use the following

[code]var btnCustom = document.createElement(‘DIV’);
btnCustom.className = ‘btn_custom’; /css class for the button/
btnCustom.setAttribute(‘title’, “custom”);
btnCustom.onmousedown =function (e) {(e||event).cancelBubble=true;}
btnCustom.onclick = function (e) {
(e||event).cancelBubble=true;
/custom logic here/
}

calendar.winHeader.appendChild(btnCustom);[/code]