The separators property (array) defines separators displayed by the JavaScript Scheduler component.
Declaration
DayPilot.Scheduler.separatorsDefault Value
nullItem Structure
cssClass(string)color(string)layer(string) -"AboveEvents"or"BelowEvents"; the default value is"BelowEvents".location(DayPilot.Date | string)opacity(number) - in percent (0to100)toolTip(string) - separator tooltip text (available since 2023.3.5731)width(number) - default value1pixel
Examples
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' }
]"
<!-- ... -->
/>See Also
Separators [doc.daypilot.org]
Availability
Availability of this API item in DayPilot editions:
| Product | Lite | Pro |
|---|---|---|
| DayPilot for JavaScript |
DayPilot