Interface: ReferenceSelectionInnerProps<M>
Type parameters​
Name | Type |
---|---|
M | extends Record <string , any > |
Properties​
collection​
• Optional
collection: EntityCollection
<M
, string
, User
>
Entity collection config
Defined in​
lib/src/core/components/ReferenceSelectionInner.tsx:53
description​
• Optional
description: ReactNode
Use this description to indicate the user what to do in this dialog.
Defined in​
lib/src/core/components/ReferenceSelectionInner.tsx:92
forceFilter​
• Optional
forceFilter: Partial
<Record
<string
, [WhereFilterOp
, any
]>>
Allow selection of entities that pass the given filter only.
Defined in​
lib/src/core/components/ReferenceSelectionInner.tsx:87
maxSelection​
• Optional
maxSelection: number
Maximum number of entities that can be selected.
Defined in​
lib/src/core/components/ReferenceSelectionInner.tsx:97
multiselect​
• Optional
multiselect: boolean
Allow multiple selection of values
Defined in​
lib/src/core/components/ReferenceSelectionInner.tsx:48
path​
• path: string
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.
Defined in​
lib/src/core/components/ReferenceSelectionInner.tsx:60
selectedEntityIds​
• Optional
selectedEntityIds: string
[]
If you are opening the dialog for the first time, you can select some entity ids to be displayed first.
Defined in​
lib/src/core/components/ReferenceSelectionInner.tsx:66
Methods​
onMultipleEntitiesSelected​
â–¸ Optional
onMultipleEntitiesSelected(entities
): void
If multiselect
is set to true
, you will get the selected entities
in this callback.
Parameters​
Name | Type |
---|---|
entities | Entity <any >[] |
Returns​
void
Defined in​
lib/src/core/components/ReferenceSelectionInner.tsx:82
onSingleEntitySelected​
â–¸ Optional
onSingleEntitySelected(entity
): void
If multiselect
is set to false
, you will get the selected entity
in this callback.
Parameters​
Name | Type |
---|---|
entity | null | Entity <any > |
Returns​
void