Skip to content

ReferenceSelectionInnerProps

@firecms/core


@firecms/core / ReferenceSelectionInnerProps

Interface: ReferenceSelectionInnerProps<M>

Section titled “Interface: ReferenceSelectionInnerProps<M>”

Defined in: components/ReferenceTable/ReferenceSelectionTable.tsx:28

M extends Record<string, any>

optional collection: EntityCollection<M, any>

Defined in: components/ReferenceTable/ReferenceSelectionTable.tsx:38

Entity collection config


optional description: ReactNode

Defined in: components/ReferenceTable/ReferenceSelectionTable.tsx:77

Use this description to indicate the user what to do in this dialog.


optional forceFilter: Partial<Record<string, [WhereFilterOp, any]>>

Defined in: components/ReferenceTable/ReferenceSelectionTable.tsx:72

Allow selection of entities that pass the given filter only.


optional maxSelection: number

Defined in: components/ReferenceTable/ReferenceSelectionTable.tsx:82

Maximum number of entities that can be selected.


optional multiselect: 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.


optional selectedEntityIds: 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.

optional onMultipleEntitiesSelected(entities): void

Defined in: components/ReferenceTable/ReferenceSelectionTable.tsx:67

If multiselect is set to true, you will get the selected entities in this callback.

Entity<any>[]

void


optional onSingleEntitySelected(entity): void

Defined in: components/ReferenceTable/ReferenceSelectionTable.tsx:59

If multiselect is set to false, you will get the selected entity in this callback.

Entity<any> | null

void