GithubHelp home page GithubHelp logo

pablofierro / react-drag-select Goto Github PK

View Code? Open in Web Editor NEW
257.0 6.0 48.0 348 KB

Drag select React component

Home Page: http://pablofierro.github.io/react-drag-select/

JavaScript 64.79% HTML 22.34% CSS 10.15% Shell 2.72%

react-drag-select's Introduction

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

react-drag-select's People

Contributors

pablofierro avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar

react-drag-select's Issues

Custom Class Names

Would be nice if one could modify the class names used to define the selection box and selected state.

Missing LICENSE file

The license in react-drag-select is slightly confusing for me. It says ISC in package.json(L26), while there is no LICENSE file included.

It would be really nice if a LICENSE file could be included in the repository, to make it more clear.

Support React 0.14+

Modify so that post React 0.13 api changes are adhered to. Not quite sure why react/addons was being used...

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.