Skip to main content

Interface: ReferenceDialogProps

Properties#

collection#

collection: EntityCollection<any, string>

Entity collection config

Defined in#

core/components/ReferenceDialog.tsx:51


multiselect#

multiselect: boolean

Allow multiple selection of values

Defined in#

core/components/ReferenceDialog.tsx:46


open#

open: boolean

Is the dialog currently open

Defined in#

core/components/ReferenceDialog.tsx:41


path#

path: string

Absolute path of the collection

Defined in#

core/components/ReferenceDialog.tsx:56


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#

core/components/ReferenceDialog.tsx:62

Methods#

onClose#

onClose(): void

Is the dialog currently open

Returns#

void

Defined in#

core/components/ReferenceDialog.tsx:84


onMultipleEntitiesSelected#

Optional onMultipleEntitiesSelected(entities): void

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

Parameters#

NameType
entitiesEntity<any>[]

Returns#

void

Defined in#

core/components/ReferenceDialog.tsx:78


onSingleEntitySelected#

Optional onSingleEntitySelected(entity): void

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

Parameters#

NameType
entitynull | Entity<any>

Returns#

void

Defined in#

core/components/ReferenceDialog.tsx:70