DayPilot
Products
Support
DayPilot UI Builder
DayPilot Edition:
Global
Locale
Time Axis
Range
Time Headers
PRONon-Business Time
Business Begins
Business Ends
Business Weekends
Rows
PROTree
PRORow Header Width
PRORow Header Hiding
PROMinimum Row Height
Grid
Cell Width
PROCrosshair
PROAuto Scroll
Events
Event Height
Duration Bar
Floating Labels
PROMoving Location Labels
PROResizing Location Labels
PROCreating Location Labels
Event Overlaps
PROAllow during Drag & Drop
PROGroup Overlapping Events
PROEvent Stacking Line Height
Event Actions
Event Creating
Event Moving
Event Resizing
Event Deleting
PROEvent Click Action
PROEvent Hover Action
Event Context Menu
«
»
Scheduler UI Builder
  • Preview
  • Config
  • Resources
  • Events
  • Download
 
Resource 1
Resource 2
Resource 3
June 2025
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
{
  timeHeaders: [
    {
      groupBy: "Month",
    },
    {
      groupBy: "Day",
      format: "d",
    },
  ],
  scale: "Day",
  days: DayPilot.Date.today().daysInMonth(),
  startDate: DayPilot.Date.today().firstDayOfMonth(),
  timeRangeSelectedHandling: "Enabled",
  onTimeRangeSelected: async (args) => {
    const scheduler = args.control;
    const modal = await DayPilot.Modal.prompt("Create a new event:", "Event 1");
    scheduler.clearSelection();
    if (modal.canceled) { return; }
    scheduler.events.add({
      start: args.start,
      end: args.end,
      id: DayPilot.guid(),
      resource: args.resource,
      text: modal.result
    });
  },
  eventMoveHandling: "Update",
  onEventMoved: (args) => {
    console.log("Event moved: " + args.e.text());
  },
  eventResizeHandling: "Update",
  onEventResized: (args) => {
    console.log("Event resized: " + args.e.text());
  },
  eventDeleteHandling: "Update",
  onEventDeleted: (args) => {
    console.log("Event deleted: " + args.e.text());
  },
}
[
  {
    "name": "Resource 1",
    "id": "R1"
  },
  {
    "name": "Resource 2",
    "id": "R2"
  },
  {
    "name": "Resource 3",
    "id": "R3"
  }
]
[
  {
    "id": 1,
    "resource": "R1",
    "start": "2025-06-04T00:00:00",
    "end": "2025-06-08T00:00:00",
    "text": "Event 1"
  },
  {
    "id": 2,
    "resource": "R1",
    "start": "2025-06-12T00:00:00",
    "end": "2025-06-16T00:00:00",
    "text": "Event 2"
  }
]
Project name:
Project target: