The layout property (string) sets the layout mode used by the JavaScript Scheduler component.
Declaration
DayPilot.Scheduler.layoutPossible Values
"DivBased"- uses the div-based layout mode."TableBased"- uses the table-based layout mode (legacy)."Auto"- uses the automatic layout mode.
Default Value
"Auto"Notes
For more information about the available layout modes, see Scheduler: Layout.
Examples
JavaScript
const dp = new DayPilot.Scheduler("dp", {
layout: "TableBased",
// ...
});
dp.init();Angular
<daypilot-scheduler [config]="config"></daypilot-scheduler>config: DayPilot.SchedulerConfig = {
layout: "TableBased",
// ...
};React
<DayPilotScheduler
layout="TableBased"
{/* ... */}
/>Vue
<DayPilotScheduler
layout="TableBased"
<!-- ... -->
/>See Also
Availability
Availability of this API item in DayPilot editions:
| Product | Lite | Pro |
|---|---|---|
| DayPilot for JavaScript |
DayPilot