Skip to content

Components · Display

EventDetails

Detailed view of a single event. Participants, resources, location, history, and lifecycle actions.

Key points

  • Self-fetching — pass an eventId
  • Lifecycle actions (confirm, cancel, complete, reschedule) wired to the engine
  • Includes audit timeline showing every state change
  • readonly disables all action affordances

Import

import { EventDetails } from '@flexischeduler/scheduling-components';

Basic usage

<EventDetails
  eventId="evt_b29f4e58"
  showLifecycleActions
  onCancelled={(event) => toast(`Cancelled ${event.id}`)}
/>

Reference

Props

Name

Type

Description

eventId

required

string

Event to render

showLifecycleActions
boolean

default: true

Show confirm / cancel / complete / reschedule buttons

showHistory
boolean

default: true

Show audit log timeline

showParticipants
boolean

default: true

Show participants section

showResources
boolean

default: true

Show allocated resources

readonly
boolean

default: false

Disable all interactive affordances

Events

Event

Payload

Fires when

onConfirmed(event: Event) => void

User confirmed the event

onCancelled(event: Event) => void

User cancelled the event

onCompleted(event: Event) => void

User marked event complete

onRescheduleClick(event: Event) => void

User clicked reschedule (open your own picker; component does not include one)

Slots

Slot

Description

sidebar

Right-rail content alongside the event details

footer

Below the action buttons

Read-only mode

Use readonly for view-only contexts — public confirmation pages, audit reviews, post-completion records:

<EventDetails
  eventId="evt_b29f4e58"
  readonly
  showLifecycleActions={false}
/>

Reschedule needs a picker

Lifecycle actions like cancel and complete are one-click — the component handles them. Reschedule fires onRescheduleClick and expects you to open an AvailabilityPicker or your own UI. Bundling a picker into the details view would force a layout decision we’d rather leave to consumers.