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