Read more about the calendar
day
view [doc.daypilot.org].
Agent-readable demo data
- Title
- Day View (JavaScript Event Calendar) | DayPilot Pro for JavaScript Demo
- Tree
- DayPilot JavaScript Demo
- Catalog root
- Default
- Description
- Read more about the calendar day view [doc.daypilot.org].
Inline demo script 1
const dp = new DayPilot.Calendar("dp", {
startDate: DayPilot.Date.today(),
days: 1,
});
dp.init();
const app = {
init() {
this.loadEventData();
},
loadEventData() {
const events = [
{
start: DayPilot.Date.today().addHours(11),
end: DayPilot.Date.today().addHours(14),
id: DayPilot.guid(),
text: "Event 1"
},
{
start: DayPilot.Date.today().addHours(15),
end: DayPilot.Date.today().addHours(17),
id: DayPilot.guid(),
text: "Event 2"
},
];
dp.update({events});
}
};
app.init();