Vuepreview
Source

FullScheduler documentation

Shift Planning for Contact Centers

Plan weekly rosters, prevent overlaps, and approve swaps with drop/resize hooks.

← All use cases

Build weekly rosters, prevent overlaps, and approve swaps via resize/drop hooks.

Weekly plan with limits

const options: FullSchedulerApiInitOptions = {
  startDate: weekStart(new Date()),
  endDate: weekEnd(new Date()),
  startHour: 0,
  endHour: 24,
  draggableEvents: true,
  resizableEvents: true,
  onEventDropped(d) {
    violatesOvertime(d.event, d.newStartDateTime, d.newEndDateTime) ? d.decline() : d.accept()
  },
  onEventStartResized(r) { limitedShiftLength(r) ? r.accept() : r.decline() },
  onEventEndResized(r)   { limitedShiftLength(r) ? r.accept() : r.decline() },
}

Approvals

Use event.data.status = 'pending' | 'approved'. After the backend approves:

schedulerApi.updateEvents(e => e.data.id === ev.data.id, {
  data: { ...ev.data, status: 'approved' }
})

Tips

  • Snap to quarter-hour: api.setThreshold(15)
  • Color-code roles via colors or renderer

Put it into practice

Start with the installation guide, then explore the APIs behind this example.