The onAfterRender event handler fires after the Month control is rendered or refreshed.
DayPilot.Month.onAfterRender(args)args.isCallBack (boolean) - true if this render follows a server-side CallBack; false during the initial page load or after a PostBack
args.data - custom data sent from the server using the Update() method
This event is called after the Month view has been updated.
JavaScript
const month = new DayPilot.Month("dp", {
onAfterRender: (args) => {
if (args.isCallBack) {
console.log(args.data);
}
},
// ...
});
month.init();Angular
<daypilot-month [config]="config"></daypilot-month>config: DayPilot.MonthConfig = {
onAfterRender: (args) => {
if (args.isCallBack) {
console.log(args.data);
}
},
// ...
};React
<DayPilotMonth
onAfterRender={onAfterRender}
{/* ... */}
/>const onAfterRender = (args) => {
if (args.isCallBack) {
console.log(args.data);
}
};Vue
<DayPilotMonth
@afterRender="onAfterRender"
<!-- ... -->
/>const onAfterRender = (args) => {
if (args.isCallBack) {
console.log(args.data);
}
};