DayPilot.Scheduler.eventPadding

The eventPadding property (number or string) applies the specified padding to events via inline styles in the JavaScript Scheduler.

The value should be a string in the CSS format for the padding style. If the value is a number (e.g. 5) it will be applied as a pixel value ("5px").

It lets you override the CSS defined in the CSS theme.

You can also set the padding for individual events using the onBeforeEventRender event handler (args.data.padding).

Available since 2024.4.6200.

Default Value

null

Example

Scheduler config:

{
  eventPadding: "5px",
  // ...
}