Skip to main content
Version: 2.0.0-alpha

Interface: EntitySidePanelProps<M, UserType>

Props used to open a side dialog

Type parameters

NameType
Many
UserTypeextends User = User

Properties

closeOnSave

Optional closeOnSave: boolean

Should this panel close when saving

Defined in

lib/src/models/side_entity_controller.tsx:62


collection

Optional collection: EntityCollection<M, string, User> | ResolvedEntityCollection<M>

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

Defined in

lib/src/models/side_entity_controller.tsx:43


copy

Optional copy: boolean

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

Defined in

lib/src/models/side_entity_controller.tsx:25


entityId

Optional entityId: string

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

Defined in

lib/src/models/side_entity_controller.tsx:20


path

path: string

Absolute path of the entity

Defined in

lib/src/models/side_entity_controller.tsx:15


selectedSubPath

Optional selectedSubPath: string

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

Defined in

lib/src/models/side_entity_controller.tsx:31


updateUrl

Optional updateUrl: boolean

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.

Defined in

lib/src/models/side_entity_controller.tsx:51


width

Optional width: string | number

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

Defined in

lib/src/models/side_entity_controller.tsx:37

Methods

onUpdate

Optional onUpdate(params): void

Callback when the entity is updated

Parameters

NameType
paramsObject
params.entityEntity<any>

Returns

void

Defined in

lib/src/models/side_entity_controller.tsx:57