Coder Social home page Coder Social logo

dropsort.js's Introduction

dropsort.js

A drag/drop/sortable replacement to jQuery UI.

Progress Plunk

This plunk will be continuously updated while testing new features: http://plnkr.co/edit/nGmCtZeWqaVuQARZtUw8?p=preview Feel free to discuss any aspect of the plunk in an issue.

Goals

  • support touch and mouse drags simulateously (some devices have both a mouse and touch screen)
  • all calls should be chainable (where applicable)
  • be easily extensible and pluggable into environments like jQuery, AngularJS, and knockout.js
  • support drag, drop, and sortable controls
  • draggable controls should be able to auto-expand in the dragged direction, and containers should be flexible, ie, if I have solid bounds on top, left, and right, but nothing specified for the bottom, the container should expand downwards
  • sortable controls should be able to drag / drop multiple items natively (ie, not with 100 lines of code wrapping jQuery UI events). selection methods may or may not be baked in.
  • use lodash where possible to reduce code clutter - in combination with coffeescript, the code base should be clean.
  • unit tested where possible
  • coffeelint / jshint to an acceptable standard
  • support amd / require / bower / etc
  • support all modern browers - chrome / firefox / IE9+
  • Works in scrollable modal boxes like fancybox (so can't have position calculations tied totally to the window, has to be aware of a box that it's in and scroll the box if the element gets near the top/bottom/sides)
  • be compatible with HTML5 drag & drop ???
  • the draggable objects should stay in sync with the mouse cursor where possible. when moving out of bounds and then back in, the item should be at the edge of the mouse pointer, not hundreds of pixels away

dropsort.js's People

Contributors

seiyria avatar

Watchers

James Cloos avatar Jason Rosenbaum avatar

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.