Skip to content

EntitySidePanelProps

@firecms/core


@firecms/core / EntitySidePanelProps

Defined in: types/side_entity_controller.tsx:11

Props used to open a side dialog

M extends Record<string, any> = any

optional allowFullScreen: boolean

Defined in: types/side_entity_controller.tsx:83

Allow the user to open the entity fullscreen


optional closeOnSave: boolean

Defined in: types/side_entity_controller.tsx:73

Should this panel close when saving


optional collection: EntityCollection<M, any> | ResolvedEntityCollection<M>

Defined in: types/side_entity_controller.tsx:49

Collection representing the entities of this view. If you leave it blank it will be induced by your navigation


optional copy: boolean

Defined in: types/side_entity_controller.tsx:31

Set this flag to true if you want to make a copy of an existing entity


optional entityId: string

Defined in: types/side_entity_controller.tsx:26

ID of the entity, if not set, it means we are creating a new entity


optional formProps: Partial<EntityFormProps<M>>

Defined in: types/side_entity_controller.tsx:78

Override some form properties


optional fullIdPath: string

Defined in: types/side_entity_controller.tsx:21

Full CMS path of the entity, including the collection and sub-collections.


optional onClose: () => void

Defined in: types/side_entity_controller.tsx:68

Callback when the dialog is closed

void


optional onUpdate: (params) => void

Defined in: types/side_entity_controller.tsx:63

Callback when the entity is updated

Entity<any>

void


path: string

Defined in: types/side_entity_controller.tsx:16

Absolute path of the entity


optional selectedTab: string

Defined in: types/side_entity_controller.tsx:37

Open the entity with a selected sub-collection view. If the panel for this entity was already open, it is replaced.


optional updateUrl: boolean

Defined in: types/side_entity_controller.tsx:57

Should update the URL when opening the dialog. Consider that if the collection that you provide is not defined in the base config of your FireCMS component, you will not be able to recreate the state if copying the URL to a different window.


optional width: string | number

Defined in: types/side_entity_controller.tsx:43

Use this prop to override the width of the form view. e.g. “600px”