Components · Input
EntitySelect
Searchable entity picker. Type-ahead search against the engine, with filters by type, status, and custom attribute values.
Key points
- Single or multi-select via the multiple prop
- Debounced server-side search; works against organizations of any size
- Filter by custom attribute values for narrow pickers (e.g. by region, department)
Import
import { EntitySelect } from '@flexischeduler/scheduling-components';Basic usage
<EntitySelect
entityType="staff"
value={selectedStaffId}
onChange={setSelectedStaffId}
placeholder="Find staff member..."
/>Reference
Props
Name
Type
Description
entityTyperequired
stringEntity type to search across
valuestring | string[]Selected entity ID(s). Use array form when multiple is true.
multiplebooleandefault: false
Allow multiple selections
placeholderstringdefault: "Search…"
Input placeholder
statusEntityStatus | EntityStatus[]default: "active"
Filter by status
filterByCustomAttributeRecord<string, unknown>Filter to entities matching these custom attribute values
maxResultsnumberdefault: 20
Max results in the dropdown
Events
Event
Payload
Fires when
onChange(value: string | string[]) => voidSelection changed
onSearch(query: string) => voidSearch query changed (use for analytics)
Slots
Slot
Description
optionCustom render for a single dropdown option
Multi-select
<EntitySelect
entityType="participant"
multiple
value={selectedIds}
onChange={setSelectedIds}
filterByCustomAttribute={{ region: 'North' }}
/>