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
eventIdrequired
stringEvent to render
showLifecycleActionsbooleandefault: true
Show confirm / cancel / complete / reschedule buttons
showHistorybooleandefault: true
Show audit log timeline
showParticipantsbooleandefault: true
Show participants section
showResourcesbooleandefault: true
Show allocated resources
readonlybooleandefault: false
Disable all interactive affordances
Events
Event
Payload
Fires when
onConfirmed(event: Event) => voidUser confirmed the event
onCancelled(event: Event) => voidUser cancelled the event
onCompleted(event: Event) => voidUser marked event complete
onRescheduleClick(event: Event) => voidUser clicked reschedule (open your own picker; component does not include one)
Slots
Slot
Description
sidebarRight-rail content alongside the event details
footerBelow 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
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.