The separators property (array) defines separators displayed by the JavaScript Scheduler component.
DayPilot.Scheduler.separatorsnullcssClass (string)
color (string)
layer (string) - "AboveEvents" or "BelowEvents"; the default value is "BelowEvents".
location (DayPilot.Date | string)
opacity (number) - in percent (0 to 100)
toolTip (string) - separator tooltip text (available since 2023.3.5731)
width (number) - default value 1 pixel
JavaScript
const dp = new DayPilot.Scheduler("dp", {
separators: [
{
color: "red",
location: "2025-03-29T00:00:00",
layer: "BelowEvents"
}
],
// ...
});
dp.init();Angular
<daypilot-scheduler [config]="config"></daypilot-scheduler>config: DayPilot.SchedulerConfig = {
separators: [
{
color: "red",
location: "2025-03-29T00:00:00",
layer: "BelowEvents"
}
],
// ...
};React
<DayPilotScheduler
separators={[
{ color: "red", location: "2025-03-29T00:00:00", layer: "BelowEvents" }
]}
{/* ... */}
/>Vue
<DayPilotScheduler
:separators="[
{ color: 'red', location: '2025-03-29T00:00:00', layer: 'BelowEvents' }
]"
<!-- ... -->
/>Separators [doc.daypilot.org]