Interface: CollectionActionsProps<M, UserType, EC>
Parameter passed to the Actions
prop in the collection configuration.
Note that actions are rendered in the collection toolbar, as well
as in the home page card.
If you don't want to render the actions in the home page card, you can
return null
if mode is home
.
Type parameters​
Name | Type |
---|---|
M | extends Record <string , any > = any |
UserType | extends User = User |
EC | extends EntityCollection <M > = EntityCollection <M > |
Properties​
collection​
• collection: EC
The collection configuration
Defined in​
lib/src/types/collections.ts:279
context​
• context: FireCMSContext
<UserType
>
Context of the app status
Defined in​
lib/src/types/collections.ts:297
loadedEntities​
• loadedEntities: Entity
<M
>[]
Entities that are currently loaded in the collection view. Note that this is not the full list of entities, but only the ones currently loaded in the collection view.
Defined in​
lib/src/types/collections.ts:292
path​
• path: string
Collection path of this entity. This is the full path, like
users/1234/addresses
Defined in​
lib/src/types/collections.ts:274
selectionController​
• selectionController: SelectionController
<M
>
Use this controller to get the selected entities and to update the selected entities state.