Add Button to Time Header
8 years ago.
I was wondering if it's possible to render a button in the time header for each column? I was successful in following the tutorial on JavaScript Scheduler Time Header Customization to add 30 minute markers (on a different Scheduler instance), but am stumped as to how to add a button. Can that be done?
Here's a portion of my Scheduler configuration:
vm.configWeekScheduler = {
scale: "Day",
days: 7,
startDate: new DayPilot.Date(),
timeHeaders: [
{ groupBy: "Month" },
{ groupBy: "Day", format: "d" }
],
onBeforeTimeHeaderRender: function (args) {
if (args.header.level === 1) {
args.header.areas = [];
args.header.areas.push({
???
});
}
},
...
DayPilot