Aller au contenu

useReferenceDialog

Ce contenu n’est pas encore disponible dans votre langue.

@firecms/core


@firecms/core / useReferenceDialog

useReferenceDialog<M>(referenceDialogProps): object

Defined in: hooks/useReferenceDialog.tsx:16

This hook is used to open a side dialog that allows the selection of entities under a given path. You can use it in custom views for selecting entities. You need to specify the path of the target collection at least. If your collection is not defined in your top collection configuration (in your FireCMS component), you need to specify explicitly. This is the same hook used internally when a reference property is defined.

M extends Record<string, any>

Omit<ReferenceSelectionInnerProps<M>, "path"> & object

object

close: () => void

void

open: () => void

void