ReferenceWidgetProps
@firecms/core / ReferenceWidgetProps
Type Alias: ReferenceWidgetProps<M>
Section titled “Type Alias: ReferenceWidgetProps<M>”ReferenceWidgetProps<
M> =object
Defined in: components/ReferenceWidget.tsx:9
Type Parameters
Section titled “Type Parameters”M extends Record<string, any>
Properties
Section titled “Properties”className?
Section titled “className?”
optionalclassName:string
Defined in: components/ReferenceWidget.tsx:29
disabled?
Section titled “disabled?”
optionaldisabled:boolean
Defined in: components/ReferenceWidget.tsx:22
forceFilter?
Section titled “forceFilter?”
optionalforceFilter:FilterValues<string>
Defined in: components/ReferenceWidget.tsx:27
Allow selection of entities that pass the given filter only.
includeEntityLink?
Section titled “includeEntityLink?”
optionalincludeEntityLink:boolean
Defined in: components/ReferenceWidget.tsx:31
includeId?
Section titled “includeId?”
optionalincludeId:boolean
Defined in: components/ReferenceWidget.tsx:30
multiselect?
Section titled “multiselect?”
optionalmultiselect:boolean
Defined in: components/ReferenceWidget.tsx:11
optionalname:string
Defined in: components/ReferenceWidget.tsx:10
onMultipleReferenceSelected()?
Section titled “onMultipleReferenceSelected()?”
optionalonMultipleReferenceSelected: (params) =>void
Defined in: components/ReferenceWidget.tsx:17
Parameters
Section titled “Parameters”params
Section titled “params”entities
Section titled “entities”Entity<M>[] | null
references
Section titled “references”EntityReference[] | null
Returns
Section titled “Returns”void
onReferenceSelected()?
Section titled “onReferenceSelected()?”
optionalonReferenceSelected: (params) =>void
Defined in: components/ReferenceWidget.tsx:13
Parameters
Section titled “Parameters”params
Section titled “params”entity
Section titled “entity”Entity<M> | null
reference
Section titled “reference”EntityReference | null
Returns
Section titled “Returns”void
path:
string
Defined in: components/ReferenceWidget.tsx:21
previewProperties?
Section titled “previewProperties?”
optionalpreviewProperties:string[]
Defined in: components/ReferenceWidget.tsx:23
size:
PreviewSize
Defined in: components/ReferenceWidget.tsx:28
value:
EntityReference|EntityReference[] |null
Defined in: components/ReferenceWidget.tsx:12