Skip to content

CollectionActionsProps

@firecms/core


@firecms/core / CollectionActionsProps

Interface: CollectionActionsProps<M, USER, EC>

Section titled “Interface: CollectionActionsProps<M, USER, EC>”

Defined in: types/collections.ts:376

Parameter passed to the Actions prop in the collection configuration. The component will receive this prop when it is rendered in the collection toolbar.

M extends Record<string, any> = any

USER extends User = User

EC extends EntityCollection<M> = EntityCollection<M>

collection: EC

Defined in: types/collections.ts:396

The collection configuration


collectionEntitiesCount: number

Defined in: types/collections.ts:418

Count of the entities in this collection


context: FireCMSContext<USER>

Defined in: types/collections.ts:413

Context of the app status


parentCollectionIds: string[]

Defined in: types/collections.ts:391

Array of the parent path segments like ['users']


path: string

Defined in: types/collections.ts:381

Full collection path of this entity. This is the full path, like users/1234/addresses


relativePath: string

Defined in: types/collections.ts:386

Path of the last collection, like addresses


selectionController: SelectionController<M>

Defined in: types/collections.ts:402

Use this controller to get the selected entities and to update the selected entities state.


tableController: EntityTableController<M>

Defined in: types/collections.ts:408

Use this controller to get the table controller and to update the table controller state.