Skip to main content
Version: 3.0.0-beta

Type Alias: ReferenceWidgetProps<M>

ReferenceWidgetProps<M>: object

Type Parameters​

• M extends Record<string, any>

Type declaration​

className?​

optional className: string

disabled?​

optional disabled: boolean

forceFilter?​

optional forceFilter: FilterValues<string>

Allow selection of entities that pass the given filter only.

optional includeEntityLink: boolean

includeId?​

optional includeId: boolean

multiselect?​

optional multiselect: boolean

name?​

optional name: string

onMultipleReferenceSelected()?​

optional onMultipleReferenceSelected: (params) => void

Parameters​

• params

• params.entities: Entity<M>[] | null

• params.references: EntityReference[] | null

Returns​

void

onReferenceSelected()?​

optional onReferenceSelected: (params) => void

Parameters​

• params

• params.entity: Entity<M> | null

• params.reference: EntityReference | null

Returns​

void

path​

path: string

previewProperties?​

optional previewProperties: string[]

size​

size: PreviewSize

value​

value: EntityReference | EntityReference[] | null

Defined in​

packages/firecms_core/src/components/ReferenceWidget.tsx:9

Sign up to our newsletter to get the latest news and updates. No spam!