Skip to content

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

eventId

required

string

Event to check in/out

showNotesField
boolean

default: false

Capture freeform notes on check-out

showLocationCapture
boolean

default: false

Capture geolocation on check-in (requires browser permission)

autoCompleteOnCheckOut
boolean

default: true

Mark event completed on check-out

Events

Event

Payload

Fires when

onCheckedIn(event: Event, meta?: CheckInMeta) => void

User checked in

onCheckedOut(event: Event, meta?: CheckOutMeta) => void

User checked out

onError(err: Error) => void

Engine 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.