The eventMarginLeft property (number) sets the left margin of a Scheduler event box in pixels. This margin makes the event width calculated from the start and end smaller, similar to padding in box-sizing: border-box mode.
DayPilot.Scheduler.eventMarginLeft0This margin is included in the rendered event width, so increasing it reduces the space available for the event content without changing the event start or end.
JavaScript
const dp = new DayPilot.Scheduler("dp", {
eventMarginLeft: 2,
// ...
});
dp.init();Angular
<daypilot-scheduler [config]="config"></daypilot-scheduler>config: DayPilot.SchedulerConfig = {
eventMarginLeft: 2,
// ...
};React
<DayPilotScheduler
eventMarginLeft={2}
{/* ... */}
/>Vue
<DayPilotScheduler
:eventMarginLeft="2"
<!-- ... -->
/>