Components · Input
CheckInControl
Check-in / check-out for in-progress events. Captures timestamp, optional notes, and optional location. Handles the engine state transitions automatically.
Key points
- Big-button UX optimized for mobile use by field staff
- Manages the scheduled → in_progress → completed transitions
- Optional notes field and location capture for richer audit trails
Import
import { CheckInControl } from '@flexischeduler/scheduling-components';Basic usage
<CheckInControl
eventId="evt_b29f4e58"
onCheckedIn={(event) => toast('Checked in')}
onCheckedOut={(event) => toast('Checked out')}
/>Reference
Props
Name
Type
Description
eventIdrequired
stringEvent to check in/out
showNotesFieldbooleandefault: false
Capture freeform notes on check-out
showLocationCapturebooleandefault: false
Capture geolocation on check-in (requires browser permission)
autoCompleteOnCheckOutbooleandefault: true
Mark event completed on check-out
Events
Event
Payload
Fires when
onCheckedIn(event: Event, meta?: CheckInMeta) => voidUser checked in
onCheckedOut(event: Event, meta?: CheckOutMeta) => voidUser checked out
onError(err: Error) => voidEngine call failed
With notes and location
<CheckInControl
eventId="evt_b29f4e58"
showNotesField
showLocationCapture
onCheckedIn={(event, meta) => api.recordCheckIn(event.id, meta)}
/>Location capture requires permission
Browsers require explicit permission for geolocation. The component handles the permission prompt but if the user denies, check-in proceeds without location data. Don’t make location strictly required unless you have a UX path for the denied case.