interface

FieldReferenceBrowserProps

Props for the framework-owned reference picker.

Properties

PropertyTypeDescription
openbooleanThe open value.
fieldSchemaFieldThe field value.
collectionSchemaCollectionThe collection value.
collectionsreadonly SchemaCollection[]Optional collection choices. Only readable collections are offered; switching clears the current list query and uncommitted selection.
hasManybooleanThe hasMany value.
selectedIDsreadonly string[]The selectedIDs value.
readOnlybooleanThe readOnly value.
initialDocumentFieldDocumentThe initialDocument value.
initialDocumentIDstringThe initialDocumentID value.
initialCreatebooleanOpen a new document form immediately when creation is permitted.
initialFileFileFile dropped into an upload field; opens a new metadata form before any upload is saved.
optionFilterFieldReferenceFilter | readonly FieldReferenceFilter[] | ((collection: SchemaCollection) => FieldReferenceFilter | readonly FieldReferenceFilter[] | undefined)The optionFilter value.
defaultValuesReadonly<Record<string, unknown>>The defaultValues value.
allowCreatebooleanThe allowCreate value.
localestringThe locale value.
onCommit(ids: string[], collectionSlug: string) => void | boolean | Promise<void | boolean>The onCommit value.
onClose() => voidThe onClose value.

Full signature

Methods