The eventBorderRadius property (number or string) applies the specified border radius to events and drag-and-drop shadows via inline styles in the JavaScript Monthly Calendar.
Declaration
DayPilot.Month.eventBorderRadiusDefault Value
nullNotes
The value should be a string in the CSS format for the border-radius style. If the value is a number (for example,
15) it will be applied as a pixel value ("15px").It lets you override the CSS defined in the CSS theme.
You can also set the border radius for individual events using the DayPilot.Month.onBeforeEventRender event handler (
args.data.borderRadius).
Examples
JavaScript
const month = new DayPilot.Month("dp", {
eventBorderRadius: "25px",
// ...
});
month.init();Angular
<daypilot-month [config]="config"></daypilot-month>config: DayPilot.MonthConfig = {
eventBorderRadius: "25px",
// ...
};React
<DayPilotMonth
eventBorderRadius="25px"
{/* ... */}
/>Vue
<DayPilotMonth
eventBorderRadius="25px"
<!-- ... -->
/>See Also
DayPilot.Month.onBeforeEventRender
CSS Themes [doc.daypilot.org]
Availability
Availability of this API item in DayPilot editions:
| Product | Lite | Pro |
|---|---|---|
| DayPilot for JavaScript |
DayPilot