Skip to content

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

entityType

required

string

Entity type to search across

value
string | string[]

Selected entity ID(s). Use array form when multiple is true.

multiple
boolean

default: false

Allow multiple selections

placeholder
string

default: "Search…"

Input placeholder

status
EntityStatus | EntityStatus[]

default: "active"

Filter by status

filterByCustomAttribute
Record<string, unknown>

Filter to entities matching these custom attribute values

maxResults
number

default: 20

Max results in the dropdown

Events

Event

Payload

Fires when

onChange(value: string | string[]) => void

Selection changed

onSearch(query: string) => void

Search query changed (use for analytics)

Slots

Slot

Description

option

Custom render for a single dropdown option

Multi-select

<EntitySelect
  entityType="participant"
  multiple
  value={selectedIds}
  onChange={setSelectedIds}
  filterByCustomAttribute={{ region: 'North' }}
/>