Skip to content

Latest commit

 

History

History
36 lines (26 loc) · 590 Bytes

README.md

File metadata and controls

36 lines (26 loc) · 590 Bytes

React Sortable

Sortable component for ReactJS. Demo here.

Demo

React.render(
  <ReactReorderable>
    <div>1</div>
    <div>2</div>
    <div>3</div>
    <div>4</div>
    <div>5</div>
  </ReactReorderable>,
  document.getElementById('container')
);

API

Properties

  • handle - a selector, which provides the handle element
  • mode - grid or list, list will work in the general case but grid is eventually smarter for grid layout

Events

  • onDragStart
  • onDrag
  • onDrop
  • onChange

License

MIT