Skip to content

ahgz7/react-drag-select

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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 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.

About

Drag select React component

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • JavaScript 98.2%
  • Shell 1.8%