FieldConditionProps
Defined in: packages/core/src/fields/conditions.ts:11
Data and sibling-field values visible to a field’s admin.condition.
Type Parameters
Section titled “Type Parameters”TCollectionSlug
Section titled “TCollectionSlug”TCollectionSlug extends VexResourceSlug = VexResourceSlug
The collection (or global) data is typed
against — DocumentByResourceSlug<TCollectionSlug>, the same resolver
FieldValidateProps.doc already uses. Defaults to the wide
VexResourceSlug union (every document) when unspecified.
Properties
Section titled “Properties”data:
DocumentByResourceSlug<TCollectionSlug>
Defined in: packages/core/src/fields/conditions.ts:15
The whole document currently being edited, typed against TCollectionSlug when supplied.
siblingData
Section titled “siblingData”siblingData:
Record<string,unknown>
Defined in: packages/core/src/fields/conditions.ts:22
The value at this field’s parent path — the whole document for a
top-level field, one array item or block item for a nested field. Not
narrowed by TCollectionSlug — its shape varies with nesting depth in a
way the collection’s own document type cannot describe in general.