ReferenceSelectionInnerProps
@firecms/core / ReferenceSelectionInnerProps
Interface: ReferenceSelectionInnerProps<M>
Section titled “Interface: ReferenceSelectionInnerProps<M>”Defined in: components/ReferenceTable/ReferenceSelectionTable.tsx:28
Type Parameters
Section titled “Type Parameters”M extends Record<string, any>
Properties
Section titled “Properties”collection?
Section titled “collection?”
optionalcollection:EntityCollection<M,any>
Defined in: components/ReferenceTable/ReferenceSelectionTable.tsx:38
Entity collection config
description?
Section titled “description?”
optionaldescription:ReactNode
Defined in: components/ReferenceTable/ReferenceSelectionTable.tsx:77
Use this description to indicate the user what to do in this dialog.
forceFilter?
Section titled “forceFilter?”
optionalforceFilter:Partial<Record<string, [WhereFilterOp,any]>>
Defined in: components/ReferenceTable/ReferenceSelectionTable.tsx:72
Allow selection of entities that pass the given filter only.
maxSelection?
Section titled “maxSelection?”
optionalmaxSelection:number
Defined in: components/ReferenceTable/ReferenceSelectionTable.tsx:82
Maximum number of entities that can be selected.
multiselect?
Section titled “multiselect?”
optionalmultiselect:boolean
Defined in: components/ReferenceTable/ReferenceSelectionTable.tsx:33
Allow multiple selection of values
path:
string
Defined in: components/ReferenceTable/ReferenceSelectionTable.tsx:45
Absolute path of the collection. May be not set if this hook is being used in a component and the path is dynamic. If not set, the dialog won’t open.
selectedEntityIds?
Section titled “selectedEntityIds?”
optionalselectedEntityIds:string[]
Defined in: components/ReferenceTable/ReferenceSelectionTable.tsx:51
If you are opening the dialog for the first time, you can select some entity ids to be displayed first.
Methods
Section titled “Methods”onMultipleEntitiesSelected()?
Section titled “onMultipleEntitiesSelected()?”
optionalonMultipleEntitiesSelected(entities):void
Defined in: components/ReferenceTable/ReferenceSelectionTable.tsx:67
If multiselect is set to true, you will get the selected entities
in this callback.
Parameters
Section titled “Parameters”entities
Section titled “entities”Entity<any>[]
Returns
Section titled “Returns”void
onSingleEntitySelected()?
Section titled “onSingleEntitySelected()?”
optionalonSingleEntitySelected(entity):void
Defined in: components/ReferenceTable/ReferenceSelectionTable.tsx:59
If multiselect is set to false, you will get the selected entity
in this callback.
Parameters
Section titled “Parameters”entity
Section titled “entity”Entity<any> | null
Returns
Section titled “Returns”void