Skip to content

EntityCustomViewParams

@firecms/core


@firecms/core / EntityCustomViewParams

Defined in: types/collections.ts:578

Parameters passed to the builder in charge of rendering a custom panel for an entity view.

M extends Record<string, any> = any

collection: EntityCollection<M>

Defined in: types/collections.ts:583

collection used by this entity


optional entity: Entity<M>

Defined in: types/collections.ts:588

Entity that this view refers to. It can be undefined if the entity is new


formContext: FormContext

Defined in: types/collections.ts:600

Use the form context to access the form state and methods


optional modifiedValues: M

Defined in: types/collections.ts:595

Modified values in the form that have not been saved yet. If the entity is not new and the values are not modified, these values are the same as in entity


optional parentCollectionIds: string[]

Defined in: types/collections.ts:605

If this is a subcollection, this is the path of the parent collections