ProSchedulerSign in

Timeline · Configuring the view

Visible hours and days

Work orders over a working week: startDay/endDay drop the weekend and startTime/endTime drop the night, so every column is working time.

Live demo

Drag a job to the next day — it skips the night · Drag one past 19:00: it keeps its length and is drawn up to the edge

Fullscreen
import { ProScheduler } from "@andreisaac/pro-scheduler"
import { technicians, workOrders } from "./data/operations"
import { useEvents } from "./kit"

export function VisibleHoursDaysDemo() {
  const { events, handlers } = useEvents(() => workOrders())
  return (
    <ProScheduler
      data={events}
      resources={technicians}
      view={{
        timeline: {
          type: "week",
          resolutionHorizontal: "hour",
          startDay: 1,
          endDay: 5,
          startTime: "07:00",
          endTime: "19:00",
        },
      }}
      styleConfig={{ unitWidthPx: 30, fitToWidth: false }}
      height={520}
      {...handlers}
    />
  )
}

About this demo

Work orders over a working week: startDay/endDay drop the weekend and startTime/endTime drop the night, so every column is working time.

Things to try

  • Drag a job to the next day — it skips the night
  • Drag one past 19:00: it keeps its length and is drawn up to the edge

The props behind it are explained in Scales, ranges and zoom.

Use ProScheduler in your project