Skip to main content
Version: 3.0.0-beta

Type Alias: SelectionController<M>

SelectionController<M>: object

Use this controller to retrieve the selected entities or modify them in an EntityCollection

Type Parameters​

• M extends Record<string, any> = any

Type declaration​

isEntitySelected()​

isEntitySelected: (entity) => boolean

Parameters​

• entity: Entity<M>

Returns​

boolean

selectedEntities​

selectedEntities: Entity<M>[]

setSelectedEntities​

setSelectedEntities: Dispatch<SetStateAction<Entity<M>[]>>

toggleEntitySelection()​

toggleEntitySelection: (entity, newSelectedState?) => void

Parameters​

• entity: Entity<M>

• newSelectedState?: boolean

Returns​

void

Defined in​

packages/firecms_core/src/types/collections.ts:379

Sign up to our newsletter to get the latest news and updates. No spam!