FleetbaseFleetbase

FullCalendar

<FullCalendar> is a full-featured calendar component wrapping FullCalendar.io. Day/week/month/timeline views with drag-and-drop event editing.

<FullCalendar>

<FullCalendar> wraps FullCalendar.io for rich calendar UIs — day, week, month, and timeline views with drag-and-drop, event resizing, and resources/lanes for assignment-style schedules.

For driver-style schedules with resource lanes, the higher-level <ScheduleCalendar> is usually a better fit (it pre-configures FullCalendar for that pattern).

Basic Usage

<FullCalendar
  @events={{this.events}}
  @initialView="dayGridMonth"
  @headerToolbar={{this.headerToolbar}}
  @editable={{true}}
  @onEventClick={{this.handleEventClick}}
  @onEventDrop={{this.handleEventDrop}}
  @onDateClick={{this.handleDateClick}}
/>

Common Arguments

ArgumentTypeDescription
@eventsarrayEvents to display
@resourcesarrayResources for resource-style views
@initialViewstringdayGridMonth, timeGridWeek, timeGridDay, resourceTimeline, etc.
@headerToolbarobjectToolbar config — buttons, layout
@editablebooleanEnable drag-and-drop
@selectablebooleanEnable date-range selection
@heightstringCalendar height
@pluginsarrayFullCalendar plugins to enable

Callbacks

ArgumentDescription
@onEventClickEvent clicked
@onEventDropEvent drag-dropped
@onEventResizeEvent resized
@onDateClickEmpty date cell clicked
@onSelectDate range selected

The component forwards most FullCalendar.io options as @-args — see the FullCalendar API reference for the full list.

Source

FullCalendar | Fleetbase