EntityActionClickProps
@firecms/core / EntityActionClickProps
Type Alias: EntityActionClickProps<M, USER>
Section titled “Type Alias: EntityActionClickProps<M, USER>”EntityActionClickProps<
M,USER> =object
Defined in: types/entity_actions.tsx:63
Type Parameters
Section titled “Type Parameters”M extends object
Properties
Section titled “Properties”collection?
Section titled “collection?”
optionalcollection:EntityCollection<M>
Defined in: types/entity_actions.tsx:69
context
Section titled “context”context:
FireCMSContext<USER>
Defined in: types/entity_actions.tsx:65
entity?
Section titled “entity?”
optionalentity:Entity<M>
Defined in: types/entity_actions.tsx:64
formContext?
Section titled “formContext?”
optionalformContext:FormContext
Defined in: types/entity_actions.tsx:75
Optional form context, present if the action is being called from a form. This allows you to access the form state and methods, including modifying the form values.
fullIdPath?
Section titled “fullIdPath?”
optionalfullIdPath:string
Defined in: types/entity_actions.tsx:68
fullPath?
Section titled “fullPath?”
optionalfullPath:string
Defined in: types/entity_actions.tsx:67
highlightEntity()?
Section titled “highlightEntity()?”
optionalhighlightEntity: (entity) =>void
Defined in: types/entity_actions.tsx:101
Optional highlight function to highlight the entity in the collection view
Parameters
Section titled “Parameters”entity
Section titled “entity”Entity<any>
Returns
Section titled “Returns”void
navigateBack()?
Section titled “navigateBack()?”
optionalnavigateBack: () =>void
Defined in: types/entity_actions.tsx:112
Optional function to navigate back (e.g. when deleting an entity or navigating from a form)
Returns
Section titled “Returns”void
onCollectionChange()?
Section titled “onCollectionChange()?”
optionalonCollectionChange: () =>void
Defined in: types/entity_actions.tsx:117
Callback to be called when the collection changes, e.g. after an entity is deleted or created.
Returns
Section titled “Returns”void
openEntityMode
Section titled “openEntityMode”openEntityMode:
"side_panel"|"full_screen"
Defined in: types/entity_actions.tsx:90
If the action is rendered in the form, is it open in a side panel or full screen?
selectionController?
Section titled “selectionController?”
optionalselectionController:SelectionController
Defined in: types/entity_actions.tsx:95
Optional selection controller, present if the action is being called from a collection view
sideEntityController?
Section titled “sideEntityController?”
optionalsideEntityController:SideEntityController
Defined in: types/entity_actions.tsx:80
Present if this actions is being called from a side dialog only
unhighlightEntity()?
Section titled “unhighlightEntity()?”
optionalunhighlightEntity: (entity) =>void
Defined in: types/entity_actions.tsx:107
Optional unhighlight function to remove the highlight from the entity in the collection view
Parameters
Section titled “Parameters”entity
Section titled “entity”Entity<any>
Returns
Section titled “Returns”void
view:
"collection"|"form"
Defined in: types/entity_actions.tsx:85
Is the action being called from the collection view or from the entity form view?