The onAutoRefresh event handler fires before an automatic refresh is requested from the server side.
DayPilot.Calendar.onAutoRefresh(args)
args.i (number) - ordinal number of this auto-refresh callargs.preventDefault() - cancels this auto-refresh callIf auto refresh is enabled, this event is fired at intervals specified by DayPilot.Calendar.autoRefreshInterval.
In ASP.NET WebForms, ASP.NET MVC, and Java editions, it fires before the server-side event.
const calendar = new DayPilot.Calendar("dp", {
onAutoRefresh: args => {
args.preventDefault();
},
// ...
});
calendar.init();
<daypilot-calendar [config]="config"></daypilot-calendar>
config: DayPilot.CalendarConfig = {
onAutoRefresh: args => {
args.preventDefault();
},
// ...
};
<DayPilotCalendar
onAutoRefresh={onAutoRefresh}
{/* ... */}
/>
const onAutoRefresh = (args) => {
args.preventDefault();
};
<DayPilotCalendar @autoRefresh="onAutoRefresh" <!-- ... --> />
const onAutoRefresh = (args) => {
args.preventDefault();
};
Auto Refresh [doc.daypilot.org]