Skip to main content
Version: 2.0.0-alpha

Interface: CollectionActionsProps<M, UserType>

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

NameType
Mextends Record<string, any> = any
UserTypeextends User = User

Properties

collection

collection: EntityCollection<M, string, User>

The collection configuration

Defined in

lib/src/types/collections.ts:245


context

context: FireCMSContext<UserType, AuthController<UserType>>

Context of the app status

Defined in

lib/src/types/collections.ts:256


path

path: string

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

Defined in

lib/src/types/collections.ts:240


selectionController

selectionController: SelectionController<M>

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

Defined in

lib/src/types/collections.ts:251

Need a hand?

We are happy to offer consulting services to help you get the most out of FireCMS.
Get in touch