Override the function call for forward / backward button.

Hi,

May I know how to override the function for forward / backward button on using my own
function implementation?

Hi,
you can either redefine inner ‘click’ handlers (although, it may be not very reliable for compatibility with future updates)scheduler._click.dhx_cal_prev_button = function(){ var state = scheduler.getState(); var view_start = scheduler.date[state.mode + "_start"](state.date); scheduler.setCurrentView(scheduler.date.add(view_start, -1, state.mode)); }; scheduler._click.dhx_cal_next_button = function(){ var state = scheduler.getState(); var view_start = scheduler.date[state.mode + "_start"](state.date); scheduler.setCurrentView(scheduler.date.add(view_start, 1, state.mode)); };
Or you can hide the existing buttons and add your own controls to the calendar markup