Is there a way to enable an onDayClick type event while in the month view so that when a user clicks on a particular day in the month view it will transition to the day view for the specific day that was clicked on?
Hello,
Be sure to check out following sample:
scheduler\samples\03_extensions\06_links_plugin.html
Best regards,
Ilya
That allows the integer that represents the day to become a hyperlink, yes. What I would like is for the entire day block to respond to the click event. So if the user clicks anywhere inside of the day block it has that behavior.
This code does what I need it to do.
scheduler.attachEvent("onTemplatesReady", function() {
dhtmlxEvent(this._obj, "click", function(e) {
var src = e.target || event.srcElement;
var name = src.className.split(" ")[0];
switch(name){
case "dhx_scale_holder":
case "dhx_scale_holder_now":
case "dhx_month_body":
case "dhx_month_head":
case "dhx_wa_day_data":
case "dhx_marked_timespan":
scheduler.setCurrentView(scheduler.getActionData(e).date, "day");
break;
default:
break;
}
})
});