The onBeforeCornerRender event is called during update() and it lets you customize the content of the upper-left corner of the Scheduler component.
Available since 2019.3.3903.
DayPilot.Scheduler.onBeforeCornerRender(args)
args.backColor
(string)
args.areas
(array) - custom active areas (available since 2020.2.4372)
args.control
- DayPilot.Scheduler instance
args.horizontalAlignment
("left" | "center" | "right")
args.html
(string) - custom HTML
args.text
(string) - custom text
args.verticalAlignment
("top" | "center" | "bottom")
In the browser, args.html
overrides args.text
.
During client-side export, args.text
overrides args.html
.
Scheduler config:
{
onBeforeCornerRender: (args) => {
args.html = dp.visibleStart().toString("yyyy");
},
// ...
}