DayPilot Edition:
Global
Locale
Columns
Date Range
Date Format
PROColumn Width
Grid
PROCell Duration
Cell Height
PROCrosshair
Business Begins
Business Ends
Time Axis
PRODay Begins
PRODay Ends
All-Day Events
PROAll-Day Events
Event Overlaps
PROArrangement Mode
PROAllow during Drag & Drop
Events
Event Creating
Event Moving
Event Resizing
Event Deleting
Event Click Action
PROEvent Hover Action
Event Context Menu
«
»
Weekly Calendar UI Builder
- Preview
- Config
- Events
- Download
|
|
|
Loading...
{
viewType: "Week",
timeRangeSelectedHandling: "Enabled",
onTimeRangeSelected: async (args) => {
const modal = await DayPilot.Modal.prompt("Create a new event:", "Event 1");
const calendar = args.control;
calendar.clearSelection();
if (modal.canceled) { return; }
calendar.events.add({
start: args.start,
end: args.end,
id: DayPilot.guid(),
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());
},
eventClickHandling: "Disabled",
}
[
{
"id": 1,
"start": "2024-11-21T10:00:00",
"end": "2024-11-21T12:00:00",
"text": "Event 1"
},
{
"id": 2,
"start": "2024-11-21T11:00:00",
"end": "2024-11-21T14:00:00",
"text": "Event 2"
},
{
"id": 3,
"start": "2024-11-21T00:00:00",
"end": "2024-11-22T00:00:00",
"text": "Event 3",
"allday": true
}
]
Project name:
Project target: