1.0.0 • Published 1 year ago

react-drag-select-by-hasib v1.0.0

Weekly downloads
-
License
ISC
Repository
github
Last release
1 year ago

React Drag to Select Component

A React component that provides group and individual item selection using mouse drag or shift/ctrl + click to select individual items.

Public Methods

selectItem(key, status)

Manually sets an items selection status by its id.

selectAll()

Select all elements in the list.

clearSelection()

Clears all selected items.

Options

Property NameDescriptionTypeDefault
enabledEnables or disables the drag select behaviourbooleantrue
onSelectionChangeCalled when the selected items change, receives item keys as argument.functionnoop