The onAfterRender event handler fires after the Month control is rendered or refreshed.
Declaration
DayPilot.Month.onAfterRender(args)Parameters
args.isCallBack(boolean) -trueif this render follows a server-side CallBack;falseduring the initial page load or after a PostBackargs.data- custom data sent from the server using theUpdate()method
Notes
This event is called after the Month view has been updated.
Examples
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);
}
};See Also
Availability
Availability of this API item in DayPilot editions:
| Product | Lite | Pro |
|---|---|---|
| DayPilot for JavaScript |
DayPilot