Adding dhtmlxcalendar to dhtmlxtoolbar

Hi,



How can I add the dhtmlxcalendar in dhtmlxtoolbar?



I have input text calendar which I want to add in the toolbar.















Regards,

MB


Hello,


toolbar doesn’t support this functionality. But you can try to use the following approach:


window.onload = function (){
var toolbar = new dhtmlXToolbarObject(“toolbar”);
toolbar.addInput(itemId,0,"",100);
var inputs = document.getElementsByTagName(“INPUT”);
for (var i=0; i < inputs.length; i++)
if(inputs[i].className ==“dhtmlxToolbarInp”){


cal = new dhtmlxCalendarObject(inputs[i],false,{isYearEditable:true,isMonthEditable:true}) ;…


}
}