EntitySidePanelProps
@firecms/core / EntitySidePanelProps
Interface: EntitySidePanelProps<M>
Section titled “Interface: EntitySidePanelProps<M>”Defined in: types/side_entity_controller.tsx:11
Props used to open a side dialog
Type Parameters
Section titled “Type Parameters”M extends Record<string, any> = any
Properties
Section titled “Properties”allowFullScreen?
Section titled “allowFullScreen?”
optionalallowFullScreen:boolean
Defined in: types/side_entity_controller.tsx:83
Allow the user to open the entity fullscreen
closeOnSave?
Section titled “closeOnSave?”
optionalcloseOnSave:boolean
Defined in: types/side_entity_controller.tsx:73
Should this panel close when saving
collection?
Section titled “collection?”
optionalcollection: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
optionalcopy: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
entityId?
Section titled “entityId?”
optionalentityId:string
Defined in: types/side_entity_controller.tsx:26
ID of the entity, if not set, it means we are creating a new entity
formProps?
Section titled “formProps?”
optionalformProps:Partial<EntityFormProps<M>>
Defined in: types/side_entity_controller.tsx:78
Override some form properties
fullIdPath?
Section titled “fullIdPath?”
optionalfullIdPath:string
Defined in: types/side_entity_controller.tsx:21
Full CMS path of the entity, including the collection and sub-collections.
onClose()?
Section titled “onClose()?”
optionalonClose: () =>void
Defined in: types/side_entity_controller.tsx:68
Callback when the dialog is closed
Returns
Section titled “Returns”void
onUpdate()?
Section titled “onUpdate()?”
optionalonUpdate: (params) =>void
Defined in: types/side_entity_controller.tsx:63
Callback when the entity is updated
Parameters
Section titled “Parameters”params
Section titled “params”entity
Section titled “entity”Entity<any>
Returns
Section titled “Returns”void
path:
string
Defined in: types/side_entity_controller.tsx:16
Absolute path of the entity
selectedTab?
Section titled “selectedTab?”
optionalselectedTab: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.
updateUrl?
Section titled “updateUrl?”
optionalupdateUrl: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.
width?
Section titled “width?”
optionalwidth:string|number
Defined in: types/side_entity_controller.tsx:43
Use this prop to override the width of the form view. e.g. “600px”