Skip to content

EntityActionClickProps

@firecms/core


@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

M extends object

USER extends User = User

optional collection: EntityCollection<M>

Defined in: types/entity_actions.tsx:69


context: FireCMSContext<USER>

Defined in: types/entity_actions.tsx:65


optional entity: Entity<M>

Defined in: types/entity_actions.tsx:64


optional formContext: 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.


optional fullIdPath: string

Defined in: types/entity_actions.tsx:68


optional fullPath: string

Defined in: types/entity_actions.tsx:67


optional highlightEntity: (entity) => void

Defined in: types/entity_actions.tsx:101

Optional highlight function to highlight the entity in the collection view

Entity<any>

void


optional navigateBack: () => void

Defined in: types/entity_actions.tsx:112

Optional function to navigate back (e.g. when deleting an entity or navigating from a form)

void


optional onCollectionChange: () => 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.

void


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?


optional selectionController: SelectionController

Defined in: types/entity_actions.tsx:95

Optional selection controller, present if the action is being called from a collection view


optional sideEntityController: SideEntityController

Defined in: types/entity_actions.tsx:80

Present if this actions is being called from a side dialog only


optional unhighlightEntity: (entity) => void

Defined in: types/entity_actions.tsx:107

Optional unhighlight function to remove the highlight from the entity in the collection view

Entity<any>

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?