Skip to content

SelectionController

@firecms/core


@firecms/core / SelectionController

SelectionController<M> = object

Defined in: types/collections.ts:427

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

M extends Record<string, any> = any

isEntitySelected: (entity) => boolean

Defined in: types/collections.ts:430

Entity<M>

boolean


selectedEntities: Entity<M>[]

Defined in: types/collections.ts:428


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

Defined in: types/collections.ts:429


toggleEntitySelection: (entity, newSelectedState?) => void

Defined in: types/collections.ts:431

Entity<M>

boolean

void