A React component that provides group and individual item selection using mouse drag or shift/ctrl + click to select individual items.
Manually sets an items selection status by its id.
Select all elements in the list.
Clears all selected items.
Property Name | Description | Type | Default |
---|---|---|---|
enabled | Enables or disables the drag select behaviour | boolean | true |
onSelectionChange | Called when the selected items change, receives item keys as argument. | function | noop |
selectedList | The list of keys of the selected children. Same as the output | array | [] |
of onSelectionChange. |